sampleInfo {sampleInfo} R Documentation

create ``sample_info`` data table

Description

Usage

sampleInfo(ID, sample.info,
    sample.name = NULL,
    color = NULL);

Arguments

ID

the sample id in the raw data files. [as string]

sample.name

the sample name label for display, this character vector could be nothing, then the generated sample display name will be replaced with the input sample id. [as string]

sample.info

the sample group information. [as string]

Details

Authors

phenotype_kit

Value

this function returns data object of type SampleInfo.

clr value class

Examples

 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));

[Package sampleInfo version 1.0.0.0 Index]