View source: R/pipeline_functions.R
merge_eset | R Documentation |
merge_eset
merges two ExpressionSet class objects and returns one ExpresssionSet object.
If genes in the two ExpressionSet objects are identical, the expression matrix will be combined directly.
Otherwise, Z-transformation is strongly suggested to be performed before combination (set std=TRUE).
merge_eset(
eset1,
eset2,
group1 = NULL,
group2 = NULL,
group_col_name = "original_group",
use_col = NULL,
remove_batch = FALSE,
std = FALSE
)
eset1 |
ExpressionSet class, the first ExpressionSet. |
eset2 |
ExpressionSet class, the second ExpressionSet. |
group1 |
character, name of the first ExpressionSet. |
group2 |
character, name of the second ExpressionSet. |
group_col_name |
character, name of the column which contains the names defined in |
use_col |
a vector of characters, the column names in the phenotype information to be kept.
If NULL, shared column names of |
remove_batch |
logical, if TRUE, remove the batch effects from these two expression datasets. Default is FALSE. |
std |
logical, whether to perform std to the original expression matrix. Default is FALSE. |
Return an ExressionSet class object.
mat1 <- matrix(rnorm(10000),nrow=1000,ncol=10)
colnames(mat1) <- paste0('Sample1_',1:ncol(mat1))
rownames(mat1) <- paste0('Gene',1:nrow(mat1))
eset1 <- generate.eset(exp_mat=mat1)
mat2 <- matrix(rnorm(10000),nrow=1000,ncol=10)
colnames(mat2) <- paste0('Sample2_',1:ncol(mat1))
rownames(mat2) <- paste0('Gene',1:nrow(mat1))
eset2 <- generate.eset(exp_mat=mat2)
new_eset <- merge_eset(eset1,eset2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.