Returns a data frame with the provided ensembl gene ids and requested mappings from biomaRt or a local file. If the mappings are absent from the local file, or the local file is not provided or missing, the mappings are retrieved by querying biomaRt.

map_ensembl_gene_id(
  ensembl_ids,
  mappings = c("ensembl_gene_id", "gene_biotype", "external_gene_name",
    "percentage_gene_gc_content"),
  species = getOption("scflow_species", default = "human"),
  ensembl_mapping_file = NULL
)

Arguments

ensembl_ids

vector of ensembl_ids, if versioned the version will be stripped.

mappings

the biomaRt attributes to be mapped or mappings file column names. ensembl_gene_id will be added if not included here. c("ensembl_gene_id", "external_gene_name")

species

ensembl_ids are mapped to human or mouse

ensembl_mapping_file

path to the mappings tsv file

Value

mapped_df a data.frame of the provided ensembl_id's with mappings.