Skip to contents

These 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 to annotation_type value

dir_name

(character) Location to store gene annotations

...

Additional arguments to be passed into BPCells::read_gencode_genes() or BPCells::read_gencode_transcripts

Methods (by class)

  • set_gene_annotations(Genome): Add gene annotations to a Genome object

  • set_gene_annotations(MarchRProject): Add gene annotations to a MarchRProject

See also

BPCells::read_gencode_transcripts BPCells::read_gencode_genes