Learn R Programming

TCGA2STAT (version 1.2)

SampleSplit: Split the Data by Sample Types.

Description

Split the TCGA data into data matrices of different sample types (normal, tumor, or recurrent tumor).

Usage

SampleSplit(dat)

Arguments

dat
data matrix in gene x sample format.

Value

A list of three elements:
primary.tumor
a matrix of tumor samples of dimension gene x sample.
recurrent.tumor
a matrix of recurrent tumor samples of dimension gene x sample.
normal
a matrix from normal samples of dimension gene x sample.

Examples

Run this code

library(TCGA2STAT)
lusc.rnaseq2 <- getTCGA(disease="LUSC", data.type="RNASeq2")
lusc.rnaseq2.bytype <- SampleSplit(lusc.rnaseq2$dat)

Run the code above in your browser using DataLab