translate_genome: Translate genome

View source: R/translate_genome.R

translate_genomeR Documentation

Translate genome

Description

Translate the name of a genome build from one format to another.

Usage

translate_genome(
  genome,
  style = c("UCSC", "Ensembl", "NCBI"),
  default_genome = NULL,
  omit_subversion = TRUE
)

Arguments

genome

A character vector of genomes equivalent to UCSC version or Ensembl Assemblies

style

A single value equivalent to "UCSC" or "Ensembl" specifying the output genome

default_genome

Default genome build when genome is NULL.

omit_subversion

Omit any subversion suffixes after the ".".

Value

Standardized genome build name as a character string.

Examples

genome <- translate_genome(genome="hg38", style="Ensembl")
genome2 <- translate_genome(genome="mm10", style="UCSC")

neurogenomics/EpiCompare documentation built on Oct. 18, 2024, 11:04 p.m.