subsetCondition: subsetCondition

Description Usage Arguments Value Examples

Description

Subset cells of specific conditions from an EMSet.

Usage

1
2
3
4
5
subsetCondition(object, ..., by, conditions)

## S4 method for signature 'EMSet'
subsetCondition(object, by = c(),
  conditions = list())

Arguments

object

An EMSet

...

...

by

A list containing parameter to subset object by. These should be present as a column in colInfo and names in the named list 'conditions'.

conditions

Conditions you would like to select. They should be organised into a named list, with the values specified in 'by' as sublist names.

Value

An EMSet containing cells that have these conditions.

Examples

1
2
3
4
5
# Load a pre-existing EMSet
em_set <- ascend::analyzed_set

# Subset batch 1
batch1 <- subsetCondition(em_set, by = "batch", conditions = list(batch = 1))

IMB-Computational-Genomics-Lab/ascend documentation built on Aug. 29, 2019, 4:10 a.m.