Get the Fragment objects
Fragments(object, ...)
Fragments(object, ...) <- value
# S3 method for ChromatinAssay
Fragments(object, ...)
# S3 method for Seurat
Fragments(object, ...)
# S3 method for ChromatinAssay
Fragments(object, ...) <- value
# S3 method for Seurat
Fragments(object, ...) <- value
A Seurat object or ChromatinAssay object
Arguments passed to other methods
A Fragment
object or list of Fragment objects
Returns a list of Fragment
objects. If there are
no Fragment objects present, returns an empty list.
Fragments(atac_small[["peaks"]])
#> list()
Fragments(atac_small)
#> list()
fpath <- system.file("extdata", "fragments.tsv.gz", package="Signac")
fragments <- CreateFragmentObject(
path = fpath,
cells = colnames(atac_small),
validate.fragments = FALSE
)
#> Computing hash
Fragments(atac_small[["bins"]]) <- fragments
fpath <- system.file("extdata", "fragments.tsv.gz", package="Signac")
fragments <- CreateFragmentObject(
path = fpath,
cells = colnames(atac_small),
validate.fragments = FALSE
)
#> Computing hash
Fragments(atac_small) <- fragments