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)
object | A Seurat object |
---|---|
assay | Name of the assay use to store the fragments file path |
Returns the path to a fragments file stored in the Assay if present
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"