sub-snap-ANY-ANY-ANY-method: subsetting for snap objects

[,snap,ANY,ANY,ANY-methodR Documentation

subsetting for snap objects

Description

This function takes a snap object and returns the subset of snap object.

Usage

## S4 method for signature 'snap,ANY,ANY,ANY'
x[i, j, mat = c("bmat", "pmat", "gmat"),
  drop = "missing"]

Arguments

x

snap; a snap object

i

integer; selected barcode index

j

integer; selected feature index

mat

character; indicates the slot to subsetting

drop

character;

Examples

data(demo.sp);
demo.sp[1:10,];
demo.sp[,1:10,mat="bmat"];
demo.sp[,1:10,mat="pmat"];

r3fang/SnapATAC documentation built on March 29, 2022, 4:33 p.m.