| make.analysis {sampleInfo} | R Documentation |
make.analysis(sampleinfo, control, treatment);
the samples of the control group will be placed at the first in the generated analysis design object, and the samples of the treatment group will be placed after the control group, so that the order of the sample groups in the generated analysis design object is control vs treatment.
the generated analysis design object can be used by the limma analysis api(limma) or the t-test analysis api(deg.t.test) for run the different expression analysis.
a DataAnalysis analysis design object that only contains the samples of the given control group and treatment group, the other sample groups in the input sample information data will be ignored.
imports "sampleInfo" from "phenotype_kit";
let samples = sampleInfo(group_vec, group_vec);
let analysis = make.analysis(samples, control = "control", treatment = "treat");
let deg = limma(x, analysis);