Annotation: Annotation

Description Usage Arguments Value Examples

View source: R/generics.R

Description

Get the annotation from a ChromatinAssay

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
Annotation(object, ...)

Annotation(object, ...) <- value

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

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

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

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

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.

Value

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

Examples

1
2
3
4
5
6
7
8
9

timoast/signac documentation built on Dec. 14, 2021, 11:34 p.m.