subset.CNA {DNAcopy} | R Documentation |
Function to return a subset of a copy number array data object by a list of chromosomes and sample.
subset.CNA(x, chromlist=NULL, samplelist=NULL, ...)
x |
Copy number array data object |
chromlist |
chromosomes of interest. Should be a subset of the valid chromosome names in the original data. |
samplelist |
samples of interest. Can be integers denoting the samples of interest or a vector of valid sample names. |
... |
other arguments which may be passed to subset . |
An object of class CNA
with the data for the list of
chromosomes and samples of interest.
data(coriell) #Combine into one CNA object to prepare for analysis on Chromosomes 1-23 CNA.object <- CNA(cbind(coriell$Coriell.05296,coriell$Coriell.13330), coriell$Chromosome,coriell$Position, data.type="logratio",sampleid=c("c05296","c13330")) #Take the first ten chromosomes of the first sample subset.CNA.object <- subset.CNA(CNA.object,chromlist=1:10,samplelist="c05296")