Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
dnil committed Nov 28, 2024
1 parent 7f7563e commit 6caa609
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion genmod/annotate_models/genetic_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@
check_X_dominant,
check_X_recessive,
)

from .models.compound_model import check_compounds


def check_genetic_models(variant_batch, families, phased=False, strict=False):
"""
Check and annotate which genetic models that are followed for the variants
Expand Down
8 changes: 7 additions & 1 deletion genmod/annotate_models/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@
from .recessive_model import check_recessive
from .x_models import check_X_dominant, check_X_recessive

__all__ = ['check_dominant','check_compounds', 'check_recessive', 'check_X_dominant', 'check_X_recessive']
__all__ = [
"check_dominant",
"check_compounds",
"check_recessive",
"check_X_dominant",
"check_X_recessive",
]
4 changes: 2 additions & 2 deletions genmod/annotate_models/variant_annotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

from genmod.vcf_tools import get_genotypes

from .make_haploblocks import get_haploblocks
from .genetic_models import check_genetic_models
from .fix_variant import make_print_version
from .genetic_models import check_genetic_models
from .make_haploblocks import get_haploblocks


class VariantAnnotator(Process):
Expand Down
3 changes: 2 additions & 1 deletion genmod/utils/get_batches.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def get_batches(

logger.info(
"Chromosome {0} parsed. Time to parse" " chromosome: {0}".format(
current_chrom, )
current_chrom,
)
)

if len(batch) > 0:
Expand Down
1 change: 0 additions & 1 deletion genmod/utils/get_priority.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

from genmod.score_variants import RANK_SCORE_TYPE_NAMES


Expand Down
3 changes: 1 addition & 2 deletions tests/functionality/test_annotate_variant.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from click.testing import CliRunner
from genmod.commands.base import cli

from genmod import logger
from genmod.commands.base import cli
from genmod.log import init_log

VCF_FILE = "tests/fixtures/test_vcf_regions.vcf"
Expand Down
1 change: 1 addition & 0 deletions tests/variant_annotation/test_get_haploblocks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from genmod.annotate_models.make_haploblocks import get_haploblocks


def get_variant(**kwargs):
"""
Construct a variant and return it
Expand Down

0 comments on commit 6caa609

Please sign in to comment.