powered by
This function takes a snap object and returns the subset of snap object.
# S4 method for snap,ANY,ANY,ANY [(x, i, j, mat = c("bmat", "pmat", "gmat"), drop = "missing")
snap; a snap object
integer; selected barcode index
integer; selected feature index
character; indicates the slot to subsetting
character;
# 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