Skip to content

Commit

Permalink
fixed gget cosmic with -mc cancer -cv 101
Browse files Browse the repository at this point in the history
  • Loading branch information
josephrich98 committed Feb 21, 2025
1 parent 61073ce commit 85fb266
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gget/gget_cosmic.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ def select_reference(
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 str(cosmic_version) == "101": # special treatment due to link difference - path=grch37 instead of path=GRCh37
download_link = download_link.replace(f"path=GRCh{grch_version}", f"path=grch{grch_version}")

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 85fb266

Please sign in to comment.