Add gene annotations to an object
set_gene_annotations.RdThese functions add gene annotations from GENCODE to Genome or MarchRProject objects. The annotations can be either genes or transcripts.
Usage
# S3 method for class 'Genome'
set_gene_annotations(
x,
annotation_type = c("transcripts", "genes", "exons"),
name = character(0),
dir_name = NULL,
...
)
# S3 method for class 'MarchRProject'
set_gene_annotations(
x,
annotation_type = c("transcripts", "genes", "exons"),
name = character(0),
dir_name = character(0),
...
)Arguments
- x
(Genome or MarchRProject) Object that the gene annotations will be inserted into
- annotation_type
(character) One of "transcripts", "genes", or "exons".
"transcripts"loads transcript-level rows (used for TSS QC)."genes"loads gene-level rows."exons"loads exon-level rows (consumed by the gene track for exon ticks).- name
(character) The given name of the gene annotation within
x. If not given, will default toannotation_typevalue- dir_name
(character) Location to store gene annotations
- ...
Additional arguments to be passed into
BPCells::read_gencode_genes()orBPCells::read_gencode_transcripts