Skip to content

Commit

Permalink
updated gget cosmic mutation_class=cancer, cosmic_version=100 (new li…
Browse files Browse the repository at this point in the history
…nk with v2)
  • Loading branch information
josephrich98 committed Feb 15, 2025
1 parent 53907ec commit e5aebd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gget/gget_cosmic.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ def select_reference(
contained_file = (
f"CancerMutationCensus_AllData_v{cosmic_version}_GRCh{grch_version}.tsv"
)
if str(cosmic_version) == "100": # special treatment due to v2
download_link = download_link.replace(".tar&bucket=downloads", "_v2.tar&bucket=downloads")
tarred_folder += "_v2"

elif mutation_class == "cell_line":
download_link = f"https://cancer.sanger.ac.uk/api/mono/products/v1/downloads/scripted?path=grch{grch_version}/cell_lines/v{cosmic_version}/CellLinesProject_GenomeScreensMutant_Tsv_v{cosmic_version}_GRCh{grch_version}.tar&bucket=downloads"
Expand Down

0 comments on commit e5aebd1

Please sign in to comment.