Fragments | R Documentation |
Get the Fragment objects
Fragments(object, ...)
Fragments(object, ...) <- value
## S3 method for class 'ChromatinAssay'
Fragments(object, ...)
## S3 method for class 'Seurat'
Fragments(object, ...)
## S3 replacement method for class 'ChromatinAssay'
Fragments(object, ...) <- value
## S3 replacement method for class 'Seurat'
Fragments(object, ...) <- value
object |
A Seurat object or ChromatinAssay object |
... |
Arguments passed to other methods |
value |
A |
Returns a list of Fragment
objects. If there are
no Fragment objects present, returns an empty list.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.