| sampleInfo {sampleInfo} | R Documentation |
sampleInfo(ID, sample.info,
sample.name = NULL,
color = NULL,
batch = NULL,
inject.order = NULL);
a vector of the SampleInfo sample information data, the shape property of the generated sample data is set as circle;
this function returns NULL if the input sample id vector or the sample group information vector is nothing, or a R# error message object if the size of the input vectors is not agreed with each other: the size of the sample_name should be equals to the size of the ID, and the size of the sample_info should be 1(a single group label for all samples) or equals to the size of the ID.
let group_vec = c("control","control","treat","control","treat","treat");
let samples = sampleInfo(group_vec, group_vec);
let analysis = make.analysis(samples, "control","treat");
let deg = limma(x, analysis);
# view deg analysis result of control vs treat
print(as.data.frame(deg));