Skip to contents

Subset liger with brackets

Usage

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

Arguments

x

A liger object

i

Feature subscriptor, passed to featureIdx of subsetLiger.

j

Cell subscriptor, passed to cellIdx of subsetLiger.

...

Additional arguments passed to subsetLiger.

Value

Subset of x with specified features and cells.

See also

Examples

pbmcPlot[varFeatures(pbmcPlot)[1:10], 1:10]
#>  Subsetting dataset: "ctrl"
#>  Subsetting dataset: "ctrl" ... done
#> 
#> An object of class liger with 10 cells
#> datasets(1): ctrl (10 cells) 
#> cellMeta(3): dataset, nUMI, leiden_cluster 
#> varFeatures(10): ISG15, ID3, RPL11, ..., S100A8 
#> dimReds(1): UMAP