Retrieve path to fragments file from assay object, and checks that the file exists and is indexed before returning the file path.

GetFragments(object, assay = NULL)

Arguments

object

A Seurat object

assay

Name of the assay use to store the fragments file path

Value

Returns the path to a fragments file stored in the Assay if present

Examples

fpath <- system.file("extdata", "fragments.tsv.gz", package="Signac") atac_small <- SetFragments(object = atac_small, file = fpath) GetFragments(object = atac_small)
#> [1] "/tmp/RtmpnJr2Vd/temp_libpath17e23c5c3c3e/Signac/extdata/fragments.tsv.gz"