Learn R Programming

cbioportalR (version 1.1.0)

get_alias: Get Gene Name Alias for a Given Hugo Symbol

Description

This function grabs known gene aliases for a given Hugo Symbol. You may notice that genes -alias pairs are not always consistent. For example get_alias("KMT2D") will return "MLL2" but get_alias("MLL2") will not return "KMT2D" This function relies on the existing cBioPortal API which controls this database of aliases. Therefore, this is a convenience function but you may want to consider a more carefully curated alias list like cbioportalR::impact_gene_info

Usage

get_alias(hugo_symbol = NULL, base_url = NULL)

Value

A character string with all aliases

Arguments

hugo_symbol

a hugo symbol for which to return aliases

base_url

The database URL to query

Examples

Run this code
if (FALSE) {

get_alias(hugo_symbol = "FGFR3", base_url = 'www.cbioportal.org/api')
get_alias(hugo_symbol = c("FGFR3", "TP53"), base_url = 'www.cbioportal.org/api')
}

Run the code above in your browser using DataLab