Skip to content

Commit

Permalink
DEV: fix logging names
Browse files Browse the repository at this point in the history
  • Loading branch information
Vini2 committed Aug 16, 2024
1 parent 031ae13 commit e33d12c
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/metacoag/metacoag_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def run(args):
# Setup logger
# ------------------------------------------------------------------------

logger = logging.getLogger("MetaCoaAG 1.2.1")
logger = logging.getLogger(f"MetaCoaAG {__version__}")
logger.setLevel(logging.DEBUG)
logging.captureWarnings(True)
formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
Expand Down
11 changes: 10 additions & 1 deletion src/metacoag/metacoag_utils/feature_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,17 @@
import numpy as np
from Bio import SeqIO

__author__ = "Vijini Mallawaarachchi and Yu Lin"
__copyright__ = "Copyright 2020, MetaCoAG Project"
__license__ = "GPL-3.0"
__version__ = "1.2.1"
__maintainer__ = "Vijini Mallawaarachchi"
__email__ = "vijini.mallawaarachchi@anu.edu.au"
__status__ = "Stable Release"


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

# Set complements of each nucleotide
complements = {"A": "T", "C": "G", "G": "C", "T": "A"}
Expand Down
11 changes: 10 additions & 1 deletion src/metacoag/metacoag_utils/label_prop_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,17 @@

MAX_WEIGHT = sys.float_info.max

__author__ = "Vijini Mallawaarachchi and Yu Lin"
__copyright__ = "Copyright 2020, MetaCoAG Project"
__license__ = "GPL-3.0"
__version__ = "1.2.1"
__maintainer__ = "Vijini Mallawaarachchi"
__email__ = "vijini.mallawaarachchi@anu.edu.au"
__status__ = "Stable Release"


# create logger
logger = logging.getLogger("MetaCoaAG 1.2.1")
logger = logging.getLogger(f"MetaCoaAG {__version__}")


class DataWrap:
Expand Down
11 changes: 10 additions & 1 deletion src/metacoag/metacoag_utils/marker_gene_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@
import os
import pathlib

__author__ = "Vijini Mallawaarachchi and Yu Lin"
__copyright__ = "Copyright 2020, MetaCoAG Project"
__license__ = "GPL-3.0"
__version__ = "1.2.1"
__maintainer__ = "Vijini Mallawaarachchi"
__email__ = "vijini.mallawaarachchi@anu.edu.au"
__status__ = "Stable Release"


# create logger
logger = logging.getLogger("MetaCoaAG 1.2.1")
logger = logging.getLogger(f"MetaCoaAG {__version__}")


# Modified from SolidBin
Expand Down
11 changes: 10 additions & 1 deletion src/metacoag/metacoag_utils/matching_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,23 @@
import networkx as nx
from scipy.spatial import distance

__author__ = "Vijini Mallawaarachchi and Yu Lin"
__copyright__ = "Copyright 2020, MetaCoAG Project"
__license__ = "GPL-3.0"
__version__ = "1.2.1"
__maintainer__ = "Vijini Mallawaarachchi"
__email__ = "vijini.mallawaarachchi@anu.edu.au"
__status__ = "Stable Release"


# Constants set from MaxBin 2.0
MU_INTRA, SIGMA_INTRA = 0, 0.01037897 / 2
MU_INTER, SIGMA_INTER = 0.0676654, 0.03419337
VERY_SMALL_DOUBLE = 1e-10
MAX_WEIGHT = sys.float_info.max

# create logger
logger = logging.getLogger("MetaCoaAG 1.2.1")
logger = logging.getLogger(f"MetaCoaAG {__version__}")


def normpdf(x, mean, sd):
Expand Down

0 comments on commit e33d12c

Please sign in to comment.