Skip to contents

Genome() creates the reference-genome component stored in a MarchRProject(). In most workflows, start with an empty genome and populate it with set_chrom_sizes(), set_gene_annotations(), set_blacklist(), and set_genome_sequence().

Usage

Genome(chromosome_size = list(), annotations = list(), sequence = character(0))

Arguments

chromosome_size

A data frame with chr, start, and end columns, or an empty list for an unconfigured genome.

annotations

A named list of genome annotation tables, typically populated with set_gene_annotations().

sequence

A character vector naming the configured BSgenome package, or character(0) when no sequence reference is configured.

Value

A validated object of class Genome.

See also

Other core classes: MarchRDataset(), MarchRProject()

Examples

genome <- Genome(
  chromosome_size = data.frame(
    chr = "chr1",
    start = 0,
    end = 248956422
  )
)
genome
#> Genome object: 
#>   Chromosomes: 
#>     chr1