# TODO: update the filename to your downloaded file
# download instructions in the documentation of `hgnc_idmap_table()`
f = "C:/DATA/HGNC/hgnc_complete_set.txt"
if(file.exists(f)) {
df = data.frame(symbol = c("vamp2", "STXBP1", "UNC18", NA, "PSD95", "NOT-A-GENE"))
hgnc = hgnc_idmap_table(f)
df = symbol_to_entrez(df, hgnc)
print(df)
}
Run the code above in your browser using DataLab