Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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

    • seqadmin
      Current Approaches to Protein Sequencing
      by seqadmin


      Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
      04-04-2024, 04:25 PM
    • seqadmin
      Strategies for Sequencing Challenging Samples
      by seqadmin


      Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
      03-22-2024, 06:39 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 04-11-2024, 12:08 PM
    0 responses
    27 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 10:19 PM
    0 responses
    31 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 09:21 AM
    0 responses
    27 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-04-2024, 09:00 AM
    0 responses
    52 views
    0 likes
    Last Post seqadmin  
    Working...
    X