| map_cnv | R Documentation |
This function maps cnv data to genes.
map_cnv(Cnvs, folder = FALSE)
Cnvs |
The cnv data. A table with the following colnames: Sample (named using the TCGA patient barcode), Chromosome, Start, End, Num_Probes, and Segment_Mean. |
folder |
If TRUE, write a map.RData file containing the mapped CNV matrix and tumor sample indices. The default is FALSE. |
A list containing theCnvQuantVecList_mat (rows are genes, columns are samples) and tumorSamps (primary tumor/01A sample column indices).
if (requireNamespace("org.Hs.eg.db", quietly=TRUE) &&
requireNamespace("TxDb.Hsapiens.UCSC.hg19.knownGene", quietly=TRUE)) {
cnvData <- data.frame(Sample="TCGA-01-0001-01A-01D-0000-01",
Chromosome=7,
Start=55000000,
End=55200000,
Num_Probes=10,
Segment_Mean=1.5)
mapped <- map_cnv(cnvData)
names(mapped)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.