transferGeneNames: Transfer gene names from one fortmat to the other format

View source: R/main.R

transferGeneNamesR Documentation

Transfer gene names from one fortmat to the other format

Description

Transfer gene names from one fortmat to the other format for two species: human and mouse.

Usage

transferGeneNames(
  genelist,
  now_name = "ensembl",
  to_name = "symbol",
  species = c("Human", "Mouse"),
  Method = c("eg.db", "biomart")
)

Arguments

genelist

a string vector, the gene list to be transferred.

now_name

a string, the current format of gene names, one of 'ensembl', 'symbol'.

to_name

a string, the format of gene names to transfer, one of 'ensembl', 'symbol'.

species

a string, the species, one of 'Human' and 'Mouse'.

Method

a string, the method to use, one of 'biomaRt' and 'eg.db', default as 'eg.db'.

Value

Return a string vector of transferred gene names. The gene names not matched in the database will not change.

Examples

geneNames <- c("ENSG00000171885", "ENSG00000115756")
transferGeneNames(geneNames, now_name = "ensembl", to_name="symbol",species="Human", Method='eg.db')



ProFAST documentation built on July 9, 2023, 5:48 p.m.