TCGA Primary sample
1
0
Entering edit mode
5.1 years ago

I downloaded LGG data from TCGA in MAF format. I want to proceed with the primary site data. I could not find any primary samples. Is there any primary sample in TCGA project? If yes which column of MAF file show primary samples? Should I use the sample barcode to find primary samples?

gene R genome tcga • 1.5k views
ADD COMMENT
0
Entering edit mode

Thank u so much for your help My issue is completely resolved with your help

ADD REPLY
0
Entering edit mode

Sounds good.

ADD REPLY
1
Entering edit mode
5.1 years ago

You may find this code, courtesy of Seán Davis, of use for identifying the metastatic samples: A: TCGA metastatic samples

You can adapt it for your own needs.

ADD COMMENT
0
Entering edit mode

thanks for your help but i want to find TCGA primary samples

ADD REPLY
1
Entering edit mode

All that you need to do is:

library(GenomicDataCommons)

response <- cases() %>%
  filter(~ project.project_id=='TCGA-LGG' & samples.sample_type=='Primary Tumor') %>%
  GenomicDataCommons::select(c(default_fields(cases()), 'samples.sample_type')) %>%
  response_all()

Then parse the results object, response. There does not appear to be any metastatic samples for TCGA-GLL.

ADD REPLY
0
Entering edit mode

Hi Kevin i downloaded the metastatic samples of LGG that was 0. Then i downloaded the BRCA metastasis sample that was 7. But the sample id is in form of "TCGA-BH-A18V" but i need only 7 sample IDs in form of "TCGA-VM-A8CB-01A-11D-A36O-08"

ADD REPLY
0
Entering edit mode

The full TCGA barcodes should be in the response object, no? Type str(response) to take a look inside it.

ADD REPLY

Login before adding your answer.

Traffic: 2711 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6