Skip to content

Commit

Permalink
removes dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
tkmamidi committed Jan 10, 2024
1 parent aa88761 commit 8ace2aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 0 additions & 8 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,3 @@ def get_variant_score(chromosome, position, ref, alt):
scores = get_ditto_score(chrom=chromosome, pos=position, ref=ref, alt=alt)
return {"scores_by_transcript": scores}


# @app.get("/hgvs/{hgvs_cdna}")
# def get_hgvs_score(hgvs_cdna):
# # TODO call mapping API from VEP to convert to genomic coordinates
# # https://rest.ensembl.org/documentation/info/vep_hgvs_get
# # TODO call the lookup for a variant
# # scores = get_variant_score( stuff from vep for variant info on genome build)
# return {"variant": hgvs_cdna}
1 change: 1 addition & 0 deletions src/utils/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def get_ditto_score(chrom: str, pos: int, ref: str, alt: str):
var_df_scores = var_df_scores.astype({"DITTO": str, "pos": str})
return json.loads(var_df_scores.to_json(orient="index"))


# Function to query variant reference allele based on posiiton from UCSC API
def query_variant(chrom: str, pos: int, allele_len: int) -> json:

Expand Down

0 comments on commit 8ace2aa

Please sign in to comment.