r3fang / SnapATAC

Analysis Pipeline for Single Cell ATAC-seq
GNU General Public License v3.0
300 stars 125 forks source link

subset of snap object #148

Open BingbingYuan opened 4 years ago

BingbingYuan commented 4 years ago

Is there a way to create a snap object based on one cluster? Thanks,

BingbingYuan commented 4 years ago

I think it could be done with the line below. c3.sp <- x.sp[x.sp@metaData$cluster==3, ]