subset-BASiCS_Chain-method: A 'subset' method for 'BASiCS_Chain" objects

Description Usage Arguments Value Author(s) Examples

Description

This can be used to extract a subset of a 'BASiCS_Chain' object. The subset can contain specific genes, cells or MCMC iterations

Usage

1
2
## S4 method for signature 'BASiCS_Chain'
subset(x, Genes = NULL, Cells = NULL, Iterations = NULL)

Arguments

x

A BASiCS_Chain object.

Genes

A vector of characters indicating what genes will be extracted.

Cells

A vector of characters indicating what cells will be extrated.

Iterations

Numeric vector of positive integers indicating which MCMC iterations will be extracted. The maximum value in Iterations must be less or equal than the total number of iterations contained in the original BASiCS_Chain object.

Value

An object of class BASiCS_Chain.

Author(s)

Catalina A. Vallejos cnvallej@uc.cl

Examples

1
2
3
4
5
6
7
8
data(ChainSC)

# Extracts 3 first genes
ChainSC1 <- subset(ChainSC, Genes = rownames(ChainSC)[1:3])
# Extracts 3 first cells
ChainSC2 <- subset(ChainSC, Cells = colnames(ChainSC)[1:3])
# Extracts 10 first iterations
ChainSC3 <- subset(ChainSC, Iterations = 1:10)

BASiCS documentation built on April 16, 2021, 6 p.m.