I have a list of gene symbols for which I want to retrieve the Ensembl Gene ID. I have a dataframe (df_biomrt_tmp) containing a column with the symbols and after running
df_biomrt_tmp-> getBM(attributes = c("hgnc_symbol", "ensembl_gene_id"),
filters = "hgnc_symbol",
values = df_biomrt_tmp$hgnc_symbol, mart = ensembl)
it throws the following error:
Error in getBM(attributes = c("hgnc_symbol", "ensembl_gene_id"), filters = "hgnc_symbol", :
target of assignment expands to non-language object
The question is: why? I have run the same test with a number of Ensembl Gene IDs to retrieve HGNC symbols and that works flawless. I suspect it is BioMart that is acting up, but any clarification is more than welcome.
Or that. ;-D