-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: add/update dunder attributes for metadata
- Loading branch information
Showing
11 changed files
with
91 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import glob | ||
import os | ||
import pickle | ||
|
@@ -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): | ||
""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): | ||
""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): | ||
""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters