Entering edit mode
5 months ago
Znow
▴
20
Hello everyone,
I am using the TCGAbiolinks package in R to retrieve TPM data from the TCGA database. Below is the code I am using:
library("TCGAbiolinks")
query_TCGA <- GDCquery(
project = "TCGA-HNSC",
data.category = "Transcriptome Profiling",
data.type = "Gene Expression Quantification",
experimental.strategy = "RNA-Seq",
workflow.type = "STAR - Counts"
)
GDCdownload(query = query_TCGA)
tcga_data <- GDCprepare(query_TCGA)
TPM <- assay(tcga_data, 4)
Could you please confirm if I am correctly extracting TPM values with this approach? Specifically, I'm using the assay()
function to extract data from tcga_data
, assuming that TPM values are in the fourth assay slot, as its name is tpm_unstrand
. Is this the correct method to obtain TPM values from TCGA data using TCGAbiolinks?
Thank you for your assistance!
will also work
Yes, if used in the context of bk11's answer, not as a standalone function call. Point is, this should have been a comment, not an answer. I've moved it to a comment this time, please be more mindful in the future.