Entering edit mode
2.8 years ago
andreadcass
•
0
I'm trying to use biomaRt in R to make a table containing HGNC symbols and UnitProt/SwissProt IDs. Here is my code:
ensembl = useMart("ENSEMBL_MART_ENSEMBL", dataset="hsapiens_gene_ensembl")
hgncswissprot <- getBM(attributes=c("hgnc_symbol", "uniprotswissprot"), filters="with_hgnc", values=list(c("ACMSD", "ATP13A2"), TRUE, mart=ensembl)
However, I get this error:
Error: unexpected symbol in: "hgncswissprot <- getBM(attributes=c("hgnc_symbol", "uniprotswissprot"), filters="with_hgnc", values=list(c("ACMSD", "ATP13A2"), TRUE, mart=ensembl) hgncswissprot"
I've been trying to solve this for days but have no idea what I'm doing wrong. I would greatly appreciate any pointers! (: