b31e581a | % Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllGenerics.R, R/helper.R \docType{methods} \name{get_bio} |
fa8db851 | \alias{get_bio} |
b31e581a | \alias{get_batch} |
fa8db851 | \alias{get_bio,SconeExperiment-method} |
b31e581a | \alias{get_batch,SconeExperiment-method} |
fa8db851 | \alias{get_batch} |
b31e581a | \alias{get_bio,SconeExperiment-method} |
fa8db851 | \alias{get_batch,SconeExperiment-method} |
b31e581a | \title{Get Factor of Biological Conditions and Batch} \usage{ get_bio(x) get_batch(x) \S4method{get_bio}{SconeExperiment}(x) \S4method{get_batch}{SconeExperiment}(x) } \arguments{ |
53885e45 | \item{x}{an object of class \code{\link{SconeExperiment}}.} |
b31e581a | } \value{ |
e9aed5e1 | NULL or a factor containing bio or batch covariate. |
b31e581a | } \description{ Get Factor of Biological Conditions and Batch } |
53885e45 | \examples{ set.seed(42) mat <- matrix(rpois(500, lambda = 5), ncol=10) colnames(mat) <- paste("X", 1:ncol(mat), sep="") obj <- SconeExperiment(mat, bio = factor(rep(c(1,2),each = 5)), batch = factor(rep(c(1,2),times = 5))) bio = get_bio(obj) batch = get_batch(obj) } |