subset.Fragment | R Documentation |
Returns a subset of a Fragment-class
object.
## S3 method for class 'Fragment'
subset(x, cells = NULL, ...)
x |
A Fragment object |
cells |
Vector of cells to retain |
... |
Arguments passed to other methods |
Returns a subsetted Fragment
object
subset
fpath <- system.file("extdata", "fragments.tsv.gz", package="Signac")
cells <- colnames(x = atac_small)
names(x = cells) <- paste0("test_", cells)
frags <- CreateFragmentObject(path = fpath, cells = cells, verbose = FALSE, tolerance = 0.5)
subset(frags, head(names(cells)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.