sortExpressionSet {iCheck} | R Documentation |
Sort the order of samples for an ExpressionSet object.
sortExpressionSet( es, varSort = c("Batch_Run_Date", "Chip_Barcode", "Chip_Address"), timeFormat = c("%m/%d/%Y", NA, NA) )
es |
An ExpressionSet. |
varSort |
A vector of phenotype variable names to be used to sort the samples
of |
timeFormat |
A vector of time format for the possible time variables in |
An ExpressionSet object with samples sorted based on the variables
indicated in varSort
.
Weiliang Qiu <stwxq@channing.harvard.edu>, Brandon Guo <brandowonder@gmail.com>, Christopher Anderson <christopheranderson84@gmail.com>, Barbara Klanderman <BKLANDERMAN@partners.org>, Vincent Carey <stvjc@channing.harvard.edu>, Benjamin Raby <rebar@channing.harvard.edu>
# generate simulated data set from conditional normal distribution set.seed(1234567) es.sim = genSimData.BayesNormal(nCpGs = 100, nCases = 20, nControls = 20, mu.n = -2, mu.c = 2, d0 = 20, s02 = 0.64, s02.c = 1.5, testPara = "var", outlierFlag = FALSE, eps = 1.0e-3, applier = lapply) print(es.sim) es.sim$Batch_Run_Date = 1:ncol(es.sim) es.sim$Chip_Barcode = 1:ncol(es.sim) es.sim$Chip_Address = 1:ncol(es.sim) es.sim2 = sortExpressionSet( es = es.sim, varSort = c("Batch_Run_Date", "Chip_Barcode", "Chip_Address"), timeFormat = c("%m/%d/%Y", NA, NA) )