map_genes: Map gene identifiers within or cross species. Type...

Description Usage Arguments Value Examples

View source: R/gene_mapping.R

Description

Map gene identifiers within or cross species. Type genemap::SPECIES to see the full list of supported species

Usage

1
2
3
4
map_genes(from_species = SPECIES, from_id_list,
  from_id_type = c("ensemblgid", "ncbigid", "symbol"),
  to_species = SPECIES, to_id_type = c("ensemblgid", "ncbigid",
  "symbol"))

Arguments

from_species

From which species

from_id_list

Gene identifiers to be mapped

from_id_type

The type of the identifiers in from_id_list

to_species

To which species

to_id_type

The type of the identifiers to map to

Value

A named list of the same size with from_id_list. Each gene from from_id_list will be mapped to an element in this result list. $mapped_genes will contain the mapped identifiers and $mapped_gene_symbols will contain corresponding symbols of these mapped genes. $gene_symbol will be the corresponding gene symbol of the input gene identifier. Name of each element is the original gene identifier used to map.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# within species mapping
map_genes(
  from_species = "hs",
  from_id_list = c("ENPP4", "GCLC"),
  from_id_type = "symbol",
  to_species = "hs"
)
# cross species mapping
map_genes(
  from_species = "hs",
  from_id_list = c("ENPP4", "GCLC"),
  from_id_type = "symbol",
  to_species = "mm",
  to_id_type = "symbol"
)

keqiang/genemap documentation built on Feb. 5, 2020, 6:53 p.m.