Convert objects to a ChromatinAssay
as.ChromatinAssay(x, ...)
# S3 method for class 'Assay'
as.ChromatinAssay(
x,
ranges = NULL,
seqinfo = NULL,
annotation = NULL,
motifs = NULL,
fragments = NULL,
bias = NULL,
positionEnrichment = NULL,
sep = c("-", "-"),
...
)
An object to convert to class ChromatinAssay
Arguments passed to other methods
A GRanges object
A Seqinfo
object containing basic
information about the genome used. Alternatively, the name of a UCSC genome
can be provided and the sequence information will be downloaded from UCSC.
Genomic annotation. It must have the following columns:
tx_id or transcript_id: Transcript ID
gene_name: Gene name
gene_id: Gene ID
gene_biotype: Gene biotype (e.g. "protein_coding", "lincRNA")
type: Annotation type (e.g. "exon", "gap")
A Motif
object
A list of Fragment
objects
Tn5 integration bias matrix
A named list of position enrichment matrices.
Characters used to separate the chromosome, start, and end coordinates in the row names of the data matrix