Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Richard Finney
    Senior Member
    • Feb 2009
    • 701

    Genomics Data Commons

    TCGA data seems to now live at the Geomics Data Commons: https://gdc.nci.nih.gov/

    The data is "accessible" via a RESTful interface.

    It appears to be a mishmash jammed into some kind of NOSQL database(?). Figuring out, for instance, what rna-seq bam file ids and "legacy" barcodes are associated with TCGA kidney disease (KICH, KIRCH, KIRP), is a real pain.

    What I want is just a dump of all the data into a flat file (or a few flat files) ... which I can then parse using jq, sed, awk, grep, custom C and Python programs, etc.

    So ... has anybody come up with a script to suck all the "meta" data from GDC via their API?
    Last edited by Richard Finney; 07-12-2016, 02:48 PM.
  • Richard Finney
    Senior Member
    • Feb 2009
    • 701

    #2
    Quick follow up.
    The Genomics Data Commons folks got back with me and say that there is indeed some problems with traciing back to original barcode.

    Here's some work arounds until their "graph database" gets fixed.

    Theoretically one can identify the "case", find unique clinical features and use an old clinical data file which has the TCGA barcode to figure out who's who.

    However, the TCGA barcode is often in the BAM file header.
    So, you can bamslice all the samples for example TCGA KICH for your regions of interest using the file_ids. Then you can examine the header to get the TCGA barcode and do whatever ... rename to something useful or use a custom look up table to discombobulate things.

    CAVEAT: not all queries finish. Check your results to make sure the REST operation worked. If you are doing large batch queries , you may have to re-run a few. CAVEAT2; official GDC files support hg38, not hg19, not hg18 which cghub used. Use UCSC "liftOver" program to get coordinates converted to hg38.

    Here's a script that works for bamslicing ...
    export token=YOURTOKENHEREITISLONGANDASCII

    function f
    {
    echo "curl --header "X-Auth-Token: ${token}" 'https://gdc-api.nci.nih.gov/slicing/view/${1}?region=chr11:95992210-96192210&region=chr16:71829584-72029584' --output ${1}.bam ; sleep 1"
    }

    f 16f3c691-7652-4068-a2ec-f5b6ba219687
    f 914e2786-90f8-4ab6-8e7d-8d77e96b9ecf
    ....
    ( just call function "f" with your favorite file_id as the argument )
    ....

    Just pipe the output to bash or hack to call curl in-line in the script.

    Then you can look in the bam file header using "samtools view -H whatever.bam" and grep for "TCGA"
    Last edited by Richard Finney; 07-14-2016, 09:25 AM.

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
      by SEQadmin2


      Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

      The systematic characterization of the human proteome has
      ...
      07-20-2026, 11:48 AM
    • SEQadmin2
      Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
      by SEQadmin2



      Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
      ...
      07-09-2026, 11:10 AM
    • SEQadmin2
      Cancer Drug Resistance: The Lingering Barrier to Rising Survival
      by SEQadmin2



      Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

      There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
      07-08-2026, 05:17 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, Yesterday, 11:41 AM
    0 responses
    9 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-20-2026, 11:10 AM
    0 responses
    23 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-13-2026, 10:26 AM
    0 responses
    36 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-09-2026, 10:04 AM
    0 responses
    45 views
    0 reactions
    Last Post SEQadmin2  
    Working...