get_bio: Get Factor of Biological Conditions and Batch

Description Usage Arguments Value Examples

Description

Get Factor of Biological Conditions and Batch

Usage

1
2
3
4
5
6
7
8
9
get_bio(x)

get_batch(x)

## S4 method for signature 'SconeExperiment'
get_bio(x)

## S4 method for signature 'SconeExperiment'
get_batch(x)

Arguments

x

an object of class SconeExperiment.

Value

NULL or a factor containing bio or batch covariate.

Examples

1
2
3
4
5
6
7
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)

scone documentation built on Nov. 8, 2020, 5:20 p.m.