Skip to contents

Subset ligerDataset object

Usage

# S3 method for ligerDataset
[(x, i, j, ...)

Arguments

x

A ligerDataset object

i

Numeric, logical index or character vector of feature names to subscribe. Leave missing for all features.

j

Numeric, logical index or character vector of cell IDs to subscribe. Leave missing for all cells.

...

Additional arguments passed to subsetLigerDataset.

Value

If i is given, the selected metadata will be returned; if it is missing, the whole cell metadata table in S4Vectors::DataFrame class will be returned.

Examples

ctrl <- dataset(pbmc, "ctrl")
ctrl[1:5, 1:5]
#> An object of class ligerDataset with 5 cells
#> rawData: 5 features