sampleInfo {sampleInfo} R Documentation

create ``sample_info`` data table

Description

Usage

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

Arguments

ID

[as string]

sample.name

[as string]

sample.info

[as string]

color

[as string]

batch

[as integer]

inject.order

[as integer]

env

[as Environment]

Details

Authors

phenotype_kit

Value

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.

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]