Skip to content

Commit

Permalink
throw error when grch_version=38 combined with mc cancer
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraluebbert committed May 30, 2024
1 parent 5c5140a commit a842740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gget/gget_cosmic.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def select_reference(

if mutation_class == "cancer":
if grch_version == 38:
logger.warning("CancerMutationCensus data is only available for GRCh37.")
logger.error("CancerMutationCensus data is only available for GRCh37. Define grch_version=37.")
download_link = f"https://cancer.sanger.ac.uk/api/mono/products/v1/downloads/scripted?path=GRCh{grch_version}/cmc/v{cosmic_version}/CancerMutationCensus_AllData_Tsv_v{cosmic_version}_GRCh{grch_version}.tar&bucket=downloads"
tarred_folder = (
f"CancerMutationCensus_AllData_Tsv_v{cosmic_version}_GRCh{grch_version}"
Expand Down

0 comments on commit a842740

Please sign in to comment.