get_bio {scone} | R Documentation

## Get Factor of Biological Conditions and Batch

### Description

Get Factor of Biological Conditions and Batch

### Usage

    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

    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)

[Package scone version 1.16.1 Index]