Learn R Programming

Signac (version 1.10.0)

Annotation: Annotation

Description

Get the annotation from a ChromatinAssay

Usage

Annotation(object, ...)

Annotation(object, ...) <- value

# S3 method for ChromatinAssay Annotation(object, ...)

# S3 method for Seurat Annotation(object, ...)

# S3 method for ChromatinAssay Annotation(object, ...) <- value

# S3 method for Seurat Annotation(object, ...) <- value

Value

Returns a GRanges object if the annotation data is present, otherwise returns NULL

Arguments

object

A Seurat object or ChromatinAssay object

...

Arguments passed to other methods

value

A value to set. Can be NULL, to remove the current annotation information, or a GRanges object. If a GRanges object is supplied and the genome information is stored in the assay, the genome of the new annotations must match the genome of the assay.

Examples

Run this code
# \donttest{
Annotation(atac_small[["peaks"]])
# }
# \donttest{
Annotation(atac_small)
# }
genes <- Annotation(atac_small)
Annotation(atac_small[["peaks"]]) <- genes
genes <- Annotation(atac_small)
Annotation(atac_small) <- genes

Run the code above in your browser using DataLab