fastMap: Map an ID to its associated HGNC gene symbol.

Description Usage Arguments Value See Also Examples

View source: R/fastMap.R

Description

fastMap accesses the associated hash table (fastMapUniProt for UniProt IDs or fastMapUniENSP for Ensembl protein IDs) and returns the associated HGNC gene symbol. Unmapped IDs will be returned as is and will be stored in an global option rete.unmapped.

Usage

1
fastMap(ID, hashTable, type = "UniProt", quietly = FALSE, dev = FALSE)

Arguments

ID

a vector of IDs to be mapped.

hashTable

the hash table to perform lookups on.

type

the type of the unmapped ID.

quietly

logical. If FALSE, a warning is generated if IDs could not be mapped.

dev

logical. For development only. If TRUE, all checks are made but instead of actually mapping, the original IDs are returned.

Value

the mapped HGNC symbol or ID if not found.

See Also

Other fastMap functions: fastMapGenerate, fastMapSanity, fastMapUpdate

Examples

1
2
3
4
5
## Not run: 
fastMap("ENSG00000121410", fastMapENSP, type = "ENSP")
fastMap(c("Q9NQ94", "P01023"), fastMapUniProt)

## End(Not run)

hyginn/ekplektoR documentation built on May 17, 2019, 9:16 p.m.