Learn R Programming

SnapATAC (version 1.0.0)

[,snap,ANY,ANY,ANY-method: subsetting for snap objects

Description

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

Usage

# S4 method for 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

Run this code
# NOT RUN {
data(demo.sp);
demo.sp[1:10,];
demo.sp[,1:10,mat="bmat"];
demo.sp[,1:10,mat="pmat"];
# }

Run the code above in your browser using DataLab