Unconfigured Ad

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

    #1

    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
      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
      by SEQadmin2



      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
      ...
      Yesterday, 09:55 AM
    • SEQadmin2
      New Genomics Technologies Take Aim at Long-Standing Limits
      by SEQadmin2


      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
      ...
      09-28-2026, 10:25 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, Today, 10:52 AM
    0 responses
    8 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, Yesterday, 05:39 AM
    0 responses
    17 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-13-2026, 09:56 AM
    0 responses
    15 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-09-2026, 11:14 AM
    0 responses
    27 views
    0 reactions
    Last Post SEQadmin2  
    Working...