Skip to content

Commit

Permalink
add todo statements to address verbose logging in all script files
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuaibi7 committed Dec 21, 2024
1 parent 02d98a8 commit e43f5ae
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dialect/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
read_cbase_results_file,
)

# TODO: Create essential and verbose logging info for all methods


def main():
parser = build_argument_parser()
args = parser.parse_args()
configure_logging(args.verbose)
# TODO: Add TODO statements to all files requiring logging changes

logging.info("Running DIALECT CLI")
logging.info(f"Arguments: {args}")
Expand Down
2 changes: 2 additions & 0 deletions src/dialect/models/gene.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import numpy as np
from scipy.optimize import minimize

# TODO: Create essential and verbose logging info for all methods


class Gene:
def __init__(self, name, samples, counts, bmr_pmf):
Expand Down
2 changes: 2 additions & 0 deletions src/dialect/models/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

from dialect.models.gene import Gene

# TODO: Create essential and verbose logging info for all methods


class Interaction:
def __init__(self, gene_a, gene_b):
Expand Down
2 changes: 2 additions & 0 deletions src/dialect/utils/discover.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import pandas as pd
from discover import DiscoverMatrix, pairwise_discover_test

# TODO: Create essential and verbose logging info for all methods


def create_mutation_matrix_from_cnt_df(cnt_df, top_genes):
"""
Expand Down
2 changes: 2 additions & 0 deletions src/dialect/utils/fishers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import logging
from statsmodels.stats.multitest import multipletests

# TODO: Create essential and verbose logging info for all methods


def run_fishers_exact_analysis(interactions):
"""
Expand Down
2 changes: 2 additions & 0 deletions src/dialect/utils/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

from dialect.utils.helpers import *

# TODO: Create essential and verbose logging info for all methods

# ---------------------------------------------------------------------------- #
# Helper Functions #
# ---------------------------------------------------------------------------- #
Expand Down
2 changes: 2 additions & 0 deletions src/dialect/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
from dialect.models.gene import Gene
from dialect.models.interaction import Interaction

# TODO: Create essential and verbose logging info for all methods


def check_file_exists(fn):
"""
Expand Down
2 changes: 2 additions & 0 deletions src/dialect/utils/identify.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from dialect.utils.discover import run_discover_analysis
from dialect.utils.fishers import run_fishers_exact_analysis

# TODO: Create essential and verbose logging info for all methods


# ---------------------------------------------------------------------------- #
# Helper Functions #
Expand Down
2 changes: 2 additions & 0 deletions src/dialect/utils/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from dialect.models.gene import Gene
from dialect.models.interaction import Interaction

# TODO: Create essential and verbose logging info for all methods


# ---------------------------------------------------------------------------- #
# HELPER FUNCTIONS #
Expand Down

0 comments on commit e43f5ae

Please sign in to comment.