Problems specifying data.type and sample.type in TCGAbiolinks GDCquery
1
0
Entering edit mode
3.8 years ago
loughrae ▴ 90

Hey all,

TCGAbiolinks isn't letting me specify sample type (primary tumour).

Here's my code:

x = GDCquery(project="TCGA-LUAD", data.category = "Copy Number Variation", sample.type = "01", data.type = "Copy Number Segment")

But this also happens whether I use sample.type = "Primary Tumor", "TP", "Primary Solid Tumor", or "Primary solid Tumor".

I get the error:

Error in checkBarcodeDefinition(sample.type) : 
01 was not found. Please select a difinition from the table above

But the table includes:

tissue.code |shortLetterCode |tissue.definition                                  |
|:-----------|:---------------|:-------------------------------------------------|
|01          |TP              |Primary Tumor                                     |

Also, I can't specify "Gene Level Copy Number" in the data.type section. I know an option for allele-specific copy number was only added recently so I'm guessing this hasn't been added to the package yet.

I can work my way around it by filtering after the GDCquery step and before GDCdownload to select only the data_type and sample_type I want (by breaking down the barcode/ID), and to remove duplicates, but is there something going on with the TCGAbiolinks library?

tcga tcgabiolinks r • 2.5k views
ADD COMMENT
0
Entering edit mode
3.8 years ago
EagleEye 7.6k

Hi,

sample_type is usually represented as,

sample.type = c("Primary solid Tumor","Solid Tissue Normal")

I am not sure if you have to specify sample.type for data.category = "Copy Number Variation". Otherwise try using typesample = c("NT") or typesample = c("TP")

ADD COMMENT
0
Entering edit mode

That doesn't work, I get a similar error message:

Error in checkBarcodeDefinition(sample.type) : 
Primary solid Tumor was not found. Please select a difinition from the table above

When I query for the solid tissue normal on its own, though, it can do that.

ADD REPLY
0
Entering edit mode

Hi, so did you find a way to obtain slides by sample.type?

ADD REPLY

Login before adding your answer.

Traffic: 1543 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