Learn R Programming

Signac (version 1.14.0)

Fragments: Get the Fragment objects

Description

Get the Fragment objects

Usage

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

Value

Returns a list of Fragment objects. If there are no Fragment objects present, returns an empty list.

Arguments

object

A Seurat object or ChromatinAssay object

...

Arguments passed to other methods

value

A Fragment object or list of Fragment objects

Examples

Run this code
Fragments(atac_small[["peaks"]])
Fragments(atac_small)
fpath <- system.file("extdata", "fragments.tsv.gz", package="Signac")
fragments <- CreateFragmentObject(
  path = fpath,
  cells = colnames(atac_small),
  validate.fragments = FALSE
)
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
)
Fragments(atac_small) <- fragments

Run the code above in your browser using DataLab