Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
elewis2 committed Nov 12, 2024
1 parent ad6567b commit a06e640
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pori_python/ipr/annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ def annotate_expression_variants(
for ipr_row in get_ipr_statements_from_variants(graphkb_conn, matches, disease_name):
ipr_row["variant"] = row["key"]
ipr_row["variantType"] = row.get("variantType", "exp")
# "kbVariantId": matched_stmt["kbVariantId"],
# "kbVariant": matched_stmt["kbVariant"],
# "kbMatchedStatements": [matched_stmt],

alterations.append(ipr_row)
except FeatureNotFoundError as err:
problem_genes.add(gene)
Expand Down Expand Up @@ -185,9 +181,6 @@ def annotate_copy_variants(
for ipr_row in get_ipr_statements_from_variants(graphkb_conn, matches, disease_name):
ipr_row["variant"] = row["key"]
ipr_row["variantType"] = row.get("variantType", "cnv")
# "kbVariantId": matched_stmt["kbVariantId"],
# "kbVariant": matched_stmt["kbVariant"],
# "kbMatchedStatements": [matched_stmt],
alterations.append(ipr_row)
except FeatureNotFoundError as err:
problem_genes.add(gene)
Expand Down Expand Up @@ -269,9 +262,6 @@ def annotate_positional_variants(
ipr_row["variantType"] = row.get(
"variantType", "mut" if row.get("gene") else "sv"
)
# "kbVariant": matched_stmt["kbVariant"],
# "kbVariantId": matched_stmt["kbVariantId"],
# "kbMatchedStatements": [matched_stmt],
alterations.append(Hashabledict(ipr_row))

except FeatureNotFoundError as err:
Expand Down Expand Up @@ -345,9 +335,6 @@ def annotate_msi(
for ipr_row in get_ipr_statements_from_variants(graphkb_conn, msi_variants, disease_name):
ipr_row["variant"] = msi_category
ipr_row["variantType"] = "msi"
# "kbVariantId": matched_stmt["kbVariantId"],
# "kbVariant": matched_stmt["kbVariant"],
# "kbMatchedStatements": [matched_stmt],
gkb_matches.append(ipr_row)
return gkb_matches

Expand Down Expand Up @@ -389,8 +376,5 @@ def annotate_tmb(
for ipr_row in get_ipr_statements_from_variants(graphkb_conn, cat_variants, disease_name):
ipr_row["variant"] = category
ipr_row["variantType"] = "tmb"
# "kbVariantId": matched_stmt["kbVariantId"],
# "kbVariant": matched_stmt["kbVariant"],
# "kbMatchedStatements": [matched_stmt],
gkb_matches.append(ipr_row)
return gkb_matches

0 comments on commit a06e640

Please sign in to comment.