Cosmic Counts

62 views
Skip to first unread message

Mateusz Marynowski

unread,
Oct 6, 2023, 10:55:20 AM10/6/23
to cBioPortal for Cancer Genomics Discussion Group
Hi,
can u please help me with `Cosmic Counts` in internal API? For example how to extract information for TP53 V173L?

Or how to get this table with API?
Screenshot from 2023-10-06 16-32-35.png

Thank you,
Mateusz

de Bruijn, Ino

unread,
Oct 11, 2023, 12:22:14 PM10/11/23
to Mateusz Marynowski, cBioPortal for Cancer Genomics Discussion Group

Hi Mateusz,

 

Thanks for reaching out!

 

The COSMIC data in cBioPortal is quite old so I would recommend to download this information directly from their website. They have free non-commercial use licenses:

 

https://cancer.sanger.ac.uk/cosmic/download

 

The internal API endpoints aren’t really meant for direct API use as they are prone to change. That said for your example you could do something like this to get the COSMIC counts:

 

curl -X POST "https://www.cbioportal.org/api/cosmic-counts/fetch" -H "accept: application/json" -H "Content-Type: application/json" -d "[ \"TP53 V173 missense\"]"

 

For downloading the full table, the easiest is to use the download controls in the browser. You can reconstruct the full table through the API as well but you’ll have to download and combine the various data source programmatically. There is some documentation for how to add the annotations from Genome Nexus here:

 

https://github.com/genome-nexus/genome-nexus/blob/master/notebooks/genome_nexus_python_example.ipynb

 

Hope that helps!

 

Best wishes,

Ino

 

From: cbiop...@googlegroups.com <cbiop...@googlegroups.com> on behalf of Mateusz Marynowski <mateusz.ma...@gmail.com>
Date: Friday, October 6, 2023 at 10:55 AM
To: cBioPortal for Cancer Genomics Discussion Group <cbiop...@googlegroups.com>
Subject: [EXTERNAL] [cbioportal] Cosmic Counts

Hi, can u please help me with `Cosmic Counts` in internal API? For example how to extract information for TP53 V173L? Or how to get this table with API? Thank you, Mateusz -- You received this message because you are subscribed to the Google

Hi,

can u please help me with `Cosmic Counts` in internal API? For example how to extract information for TP53 V173L?

 

Or how to get this table with API?

 

Thank you,

Mateusz

--
You received this message because you are subscribed to the Google Groups "cBioPortal for Cancer Genomics Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cbioportal+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cbioportal/075a7bd4-c3dc-46dc-940e-2185a4294c84n%40googlegroups.com.

=====================================================================

Please note that this e-mail and any files transmitted from
Memorial Sloan Kettering Cancer Center may be privileged, confidential,
and protected from disclosure under applicable law. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any reading, dissemination, distribution,
copying, or other use of this communication or any of its attachments
is strictly prohibited. If you have received this communication in
error, please notify the sender immediately by replying to this message
and deleting this message, any attachments, and all copies and backups
from your computer.

Disclaimer ID:MSKCC
Reply all
Reply to author
Forward
0 new messages