Signac (version 0.2.4)

SetFragments: Set the fragments file path for creating plots

Description

Give path of indexed fragments file that goes with data in the object. Checks for a valid path and an index file with the same name (.tbi) at the same path. Stores the path under the tools slot for access by visualization functions. One fragments file can be stored for each assay.

Usage

SetFragments(object, file, assay = NULL)

Arguments

object

A Seurat object

assay

Assay used to generate the fragments. If NULL, use the active assay.

Value

Returns a Seurat object

Examples

Run this code
# NOT RUN {
fpath <- system.file("extdata", "fragments.tsv.gz", package="Signac")
SetFragments(object = atac_small, file = fpath)
# }

Run the code above in your browser using DataLab