View source: R/pipeline_functions.R
generate.eset | R Documentation |
generate.eset
generates ExpressionSet class object to contain and describe the high-throughput assays.
Users need to define its slots, which are expression matrix (required),
phenotype information and feature information (optional).
It is very useful when only expression matrix is available.
generate.eset(
exp_mat = NULL,
phenotype_info = NULL,
feature_info = NULL,
annotation_info = ""
)
exp_mat |
matrix, the expression data matrix. Each row represents a gene/transcript/probe, each column represents a sample. |
phenotype_info |
data.frame, the phenotype information for all the samples in |
feature_info |
data.frame, the feature information for all the genes/transcripts/probes in |
annotation_info |
character, the annotation set by users for easier reference. Default is "". |
Return an ExressionSet object.
mat1 <- matrix(rnorm(10000),nrow=1000,ncol=10)
colnames(mat1) <- paste0('Sample',1:ncol(mat1))
rownames(mat1) <- paste0('Gene',1:nrow(mat1))
eset <- generate.eset(exp_mat=mat1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.