View source: R/pipeline_functions.R
update_eset.phenotype | R Documentation |
update_eset.phenotype
reassigns the phenoData slot of ExpressionSet based on user's demand.
It is mainly used to modify sample names and extract interested phenotype information for further sample clustering.
update_eset.phenotype(
use_eset = NULL,
use_phenotype_info = NULL,
use_sample_col = NULL,
use_col = "auto"
)
use_eset |
ExpressionSet class object. |
use_phenotype_info |
data.frame, a dataframe contains phenotype information, can be obtained by calling |
use_sample_col |
character, must be one of the column names in |
use_col |
character, the columns will be kept from |
Return an ExressionSet object with updated phenotype information.
## Not run:
net_eset <- load.exp.GEO(out.dir='./test',
GSE='GSE116028',
GPL='GPL6480',
getGPL=TRUE,
update=FALSE)
net_eset <- update_eset.phenotype(use_eset=net_eset,
use_phenotype_info=Biobase::pData(net_eset),
use_sample_col='geo_accession',
use_col='GEO-auto')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.