Skip to content

Commit

Permalink
Merge branch 'develop' into bugfix/unexpected-state-on-success
Browse files Browse the repository at this point in the history
  • Loading branch information
elewis2 authored Jul 12, 2024
2 parents 70ded3c + 215bf83 commit d785a1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pori_python/ipr/annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from pori_python.graphkb.types import Variant
from pori_python.graphkb.util import FeatureNotFoundError
from pandas import isnull
from progressbar import progressbar
from tqdm import tqdm
from typing import Dict, List, Sequence

from .constants import TMB_HIGH_CATEGORY
Expand Down Expand Up @@ -102,7 +102,7 @@ def annotate_expression_variants(
problem_genes = set()

logger.info(f"Starting annotation of {len(variants)} expression category_variants")
iterfunc = progressbar if show_progress else iter
iterfunc = tqdm if show_progress else iter
for row in iterfunc(variants):
gene = row['gene']
variant = row['variant']
Expand Down Expand Up @@ -155,7 +155,7 @@ def annotate_copy_variants(
problem_genes = set()

logger.info(f"Starting annotation of {len(variants)} copy category_variants")
iterfunc = progressbar if show_progress else iter
iterfunc = tqdm if show_progress else iter
for row in iterfunc(variants):
gene = row['gene']
variant = row['variant']
Expand Down Expand Up @@ -213,7 +213,7 @@ def annotate_positional_variants(
alterations = []
problem_genes = set()

iterfunc = progressbar if show_progress else iter
iterfunc = tqdm if show_progress else iter
for row in iterfunc(variants):
if not row.get('gene') and (not row.get('gene1') or not row.get('gene2')):
# https://www.bcgsc.ca/jira/browse/GERO-56?focusedCommentId=1234791&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1234791
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ dependency_links = []
include_package_data = True
install_requires =
biopython
progressbar2
pandas>=1.1.0
jsonschema
pandas>=1.1.0
requests
tqdm
typing_extensions>=3.7.4.2,<5

[options.extras_require]
Expand Down

0 comments on commit d785a1a

Please sign in to comment.