Skip to content

Commit

Permalink
MAINT: add/update dunder attributes for metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Vini2 committed Sep 4, 2024
1 parent 3bac072 commit a50b1e9
Show file tree
Hide file tree
Showing 11 changed files with 91 additions and 8 deletions.
2 changes: 1 addition & 1 deletion reneo/workflow/scripts/combineJunctionPickles.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from collections import defaultdict

__author__ = "Michael Roach"
__copyright__ = "Copyright 2022, Reneo Project"
__copyright__ = "Copyright 2023, Reneo Project"
__license__ = "MIT"
__version__ = "0.5.0"
__maintainer__ = "Vijini Mallawaarachchi"
Expand Down
2 changes: 1 addition & 1 deletion reneo/workflow/scripts/reneo.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
)

__author__ = "Vijini Mallawaarachchi"
__copyright__ = "Copyright 2022, Reneo Project"
__copyright__ = "Copyright 2023, Reneo Project"
__license__ = "MIT"
__version__ = "0.5.0"
__maintainer__ = "Vijini Mallawaarachchi"
Expand Down
15 changes: 13 additions & 2 deletions reneo/workflow/scripts/reneo_utils/FD_Inexact.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
#!/usr/bin/env python3

# Source: https://github.com/algbio/MFD-ILP

import logging

import more_itertools
import networkx as nx

# create logger
logger = logging.getLogger("reneo 0.5.0")
__author__ = "Vijini Mallawaarachchi"
__copyright__ = "Copyright 2023, Reneo Project"
__license__ = "MIT"
__version__ = "0.5.0"
__maintainer__ = "Vijini Mallawaarachchi"
__email__ = "[email protected]"
__status__ = "Development"


# Create logger
logger = logging.getLogger(f"reneo {__version__}")


def read_input(graphfile, number_subpath):
Expand Down
11 changes: 11 additions & 0 deletions reneo/workflow/scripts/reneo_utils/component_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#!/usr/bin/env python3

__author__ = "Vijini Mallawaarachchi"
__copyright__ = "Copyright 2023, Reneo Project"
__license__ = "MIT"
__version__ = "0.5.0"
__maintainer__ = "Vijini Mallawaarachchi"
__email__ = "[email protected]"
__status__ = "Development"


def get_components(**kwargs):
"""
Get connected components with VOGs and no SMGs.
Expand Down
10 changes: 10 additions & 0 deletions reneo/workflow/scripts/reneo_utils/coverage_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

import glob
import os
import pickle
Expand All @@ -7,6 +9,14 @@

import pysam

__author__ = "Vijini Mallawaarachchi"
__copyright__ = "Copyright 2023, Reneo Project"
__license__ = "MIT"
__version__ = "0.5.0"
__maintainer__ = "Vijini Mallawaarachchi"
__email__ = "[email protected]"
__status__ = "Development"


def get_unitig_coverage(coverage):
"""
Expand Down
13 changes: 12 additions & 1 deletion reneo/workflow/scripts/reneo_utils/edge_graph_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

import copy
import logging
from collections import defaultdict
Expand All @@ -6,8 +8,17 @@
from Bio.Seq import Seq
from igraph import *

__author__ = "Vijini Mallawaarachchi"
__copyright__ = "Copyright 2023, Reneo Project"
__license__ = "MIT"
__version__ = "0.5.0"
__maintainer__ = "Vijini Mallawaarachchi"
__email__ = "[email protected]"
__status__ = "Development"


# Create logger
logger = logging.getLogger("reneo 0.5.0")
logger = logging.getLogger(f"reneo {__version__}")


class BidirectionalError(Exception):
Expand Down
11 changes: 10 additions & 1 deletion reneo/workflow/scripts/reneo_utils/flow_utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import tempfile
#!/usr/bin/env python3

import tempfile
import networkx as nx

from .FD_Inexact import SolveInstances

__author__ = "Vijini Mallawaarachchi"
__copyright__ = "Copyright 2023, Reneo Project"
__license__ = "MIT"
__version__ = "0.5.0"
__maintainer__ = "Vijini Mallawaarachchi"
__email__ = "[email protected]"
__status__ = "Development"


def get_source_sink_circular(G_edge, graph_unitigs, minlength, self_looped_nodes):
"""
Expand Down
10 changes: 10 additions & 0 deletions reneo/workflow/scripts/reneo_utils/gene_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
#!/usr/bin/env python3

from collections import defaultdict
from pathlib import Path

__author__ = "Vijini Mallawaarachchi"
__copyright__ = "Copyright 2023, Reneo Project"
__license__ = "MIT"
__version__ = "0.5.0"
__maintainer__ = "Vijini Mallawaarachchi"
__email__ = "[email protected]"
__status__ = "Development"


def get_smg_unitigs(hmmout, mg_frac):
"""
Expand Down
11 changes: 11 additions & 0 deletions reneo/workflow/scripts/reneo_utils/genome_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#!/usr/bin/env python3

__author__ = "Vijini Mallawaarachchi"
__copyright__ = "Copyright 2023, Reneo Project"
__license__ = "MIT"
__version__ = "0.5.0"
__maintainer__ = "Vijini Mallawaarachchi"
__email__ = "[email protected]"
__status__ = "Development"


# Class for genome path
class GenomePath:
def __init__(
Expand Down
12 changes: 11 additions & 1 deletion reneo/workflow/scripts/reneo_utils/output_utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
#!/usr/bin/env python3

import os
import subprocess

FASTA_LINE_LEN = 60
__author__ = "Vijini Mallawaarachchi"
__copyright__ = "Copyright 2023, Reneo Project"
__license__ = "MIT"
__version__ = "0.5.0"
__maintainer__ = "Vijini Mallawaarachchi"
__email__ = "[email protected]"
__status__ = "Development"


FASTA_LINE_LEN = 60

def write_unitigs(nodes, unitig_names, graph_unitigs, filename, output):
"""
Write unitigs to FASTA file
Expand Down
2 changes: 1 addition & 1 deletion reneo/workflow/scripts/sampleJunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from reneo_utils.coverage_utils import read_pair_generator

__author__ = "Michael Roach"
__copyright__ = "Copyright 2022, Reneo Project"
__copyright__ = "Copyright 2023, Reneo Project"
__license__ = "MIT"
__version__ = "0.5.0"
__maintainer__ = "Vijini Mallawaarachchi"
Expand Down

0 comments on commit a50b1e9

Please sign in to comment.