Skip to content

Commit

Permalink
Merge pull request #95 from leexgh/add-oncokb-version
Browse files Browse the repository at this point in the history
Specify OncoKB data version and add to version endpoint
  • Loading branch information
inodb authored Dec 31, 2024
2 parents 34d4053 + a0e050b commit a065749
Show file tree
Hide file tree
Showing 9 changed files with 6,262 additions and 4,938 deletions.
12 changes: 8 additions & 4 deletions data/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ QSIZE=1000
# Genome build(grch37 or grch38). Use in Uniprot mapping
GENOME_BUILD=$(firstword $(subst _, ,$(VERSION)))

# OncoKB version. Used for downloading OncoKB cancer gene list and generating isoform overrides table.
# Check OncoKB website for the latest version number.
ONCOKB_VERSION=v4.24

ifeq ($(GENOME_BUILD), grch38)
MSKCC_ISOFORM_OVERRIDES_FILE_NAME=isoform_overrides_at_mskcc_grch38.txt
ONCOKB_ISOFORM_OVERRIDES_FILE_NAME=isoform_overrides_oncokb_grch38.txt
Expand Down Expand Up @@ -203,16 +207,16 @@ $(VERSION)/input/ensembl_biomart_ccds.txt $(VERSION)/input/ensembl_biomart_genei
# download OncoKB cancer genes list
# need to set ONCOKB_TOKEN first by "export ONCOKB_TOKEN="
common_input/oncokb_cancer_genes_list_from_API.json:
curl -X 'GET' "https://www.oncokb.org/api/v1/utils/cancerGeneList" -H "accept: application/json" -H "Authorization: Bearer $(ONCOKB_TOKEN)" | python -m json.tool > $@
curl -X 'GET' "https://www.oncokb.org/api/v1/utils/cancerGeneList?version=$(ONCOKB_VERSION)" -H "accept: application/json" -H "Authorization: Bearer $(ONCOKB_TOKEN)" | python -m json.tool > $@

common_input/oncokb_cancer_genes_list.txt:
curl -X 'GET' "https://www.oncokb.org/api/v1/utils/cancerGeneList.txt" -H "accept: text/plain" -H "Authorization: Bearer $(ONCOKB_TOKEN)" > $@
curl -X 'GET' "https://www.oncokb.org/api/v1/utils/cancerGeneList.txt?version=$(ONCOKB_VERSION)" -H "accept: text/plain" -H "Authorization: Bearer $(ONCOKB_TOKEN)" > $@

common_input/isoform_overrides_oncokb_grch37.txt:
python ../scripts/download_oncokb_isoform_overrides.py grch37 > $@
python ../scripts/download_oncokb_isoform_overrides.py grch37 $(ONCOKB_VERSION)> $@

common_input/isoform_overrides_oncokb_grch38.txt:
python ../scripts/download_oncokb_isoform_overrides.py grch38 > $@
python ../scripts/download_oncokb_isoform_overrides.py grch38 $(ONCOKB_VERSION)> $@

# ClinVar version
# The latest version date number can be found on https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh37/ and https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/
Expand Down
1,631 changes: 905 additions & 726 deletions data/common_input/isoform_overrides_oncokb_grch37.txt

Large diffs are not rendered by default.

1,631 changes: 905 additions & 726 deletions data/common_input/isoform_overrides_oncokb_grch38.txt

Large diffs are not rendered by default.

167 changes: 104 additions & 63 deletions data/common_input/oncokb_cancer_genes_list.txt

Large diffs are not rendered by default.

Loading

0 comments on commit a065749

Please sign in to comment.