get_bio {scone} | R Documentation |
Get Factor of Biological Conditions and Batch
get_bio(x) get_batch(x) ## S4 method for signature 'SconeExperiment' get_bio(x) ## S4 method for signature 'SconeExperiment' get_batch(x)
x |
an object of class |
NULL or a factor containing bio or batch covariate.
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)