Skip to content

Commit

Permalink
lint with black
Browse files Browse the repository at this point in the history
  • Loading branch information
elewis2 committed Dec 28, 2023
1 parent 642fcd3 commit 5ffa63a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions graphkb/genes.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,19 @@ def get_preferred_gene_name(

gene_names = [g["displayName"] for g in genes if g]
if 'ENS' in gene_name:
import pdb; pdb.set_trace()
import pdb

pdb.set_trace()
if len(gene_names) > 1:
logger.error(
f"Multiple gene names found for: {gene_name} - using {gene_names[0]}, ignoring {gene_names[1:]}"
)
return gene_names[0]


def get_cancer_predisposition_info(conn: GraphKBConnection, source: str = PREFERRED_GENE_SOURCE) -> Tuple[List[str], Dict[str, str]]:
def get_cancer_predisposition_info(
conn: GraphKBConnection, source: str = PREFERRED_GENE_SOURCE
) -> Tuple[List[str], Dict[str, str]]:
"""
Return two lists from GraphKB, one of cancer predisposition genes and one of associated variants.
Expand Down Expand Up @@ -308,7 +312,9 @@ def get_cancer_predisposition_info(conn: GraphKBConnection, source: str = PREFER
return sorted(genes), variants


def get_pharmacogenomic_info(conn: GraphKBConnection, source: str = PREFERRED_GENE_SOURCE) -> Tuple[List[str], Dict[str, str]]:
def get_pharmacogenomic_info(
conn: GraphKBConnection, source: str = PREFERRED_GENE_SOURCE
) -> Tuple[List[str], Dict[str, str]]:
"""
Return two lists from GraphKB, one of pharmacogenomic genes and one of associated variants.
Expand Down

0 comments on commit 5ffa63a

Please sign in to comment.