I was wondering if you could help me with this, i'm trying to rerun the code you sent me above but this time having a list of official gene names. I've tried altering the "attributes" and "filters" to a number of stuff like "external_gene_name" or "official_gene_symbol" but nothing seems to be working. My rows are named normally such as "Sox2", "Wnt9a" etc. If you could help it would be great.
Tried that and "associated_gene_name" comes up but R outputs the same error:
Error in getBM(attributes = c("associated_gene_name", "go_id", "name_1006"), :
Invalid attribute(s): associated_gene_name
Please use the function 'listAttributes' to get valid attribute names
thanks for this! I keep getting the same error though, I substituted values = id, to values =cd (cd is the name of my table) and also changed the useDataset to ('mmusculus_gene_ensembl') the table generated is completely empty, not even the ensembl Ids show up.
I've looked at my row names and they seem pretty normal, not sure if I'm missing something in the identifiers
Worked like a charm! thank you!!
Hi Emily,
I was wondering if you could help me with this, i'm trying to rerun the code you sent me above but this time having a list of official gene names. I've tried altering the "attributes" and "filters" to a number of stuff like "external_gene_name" or "official_gene_symbol" but nothing seems to be working. My rows are named normally such as "Sox2", "Wnt9a" etc. If you could help it would be great.
Thanks
Use
listAttributes(ensembl)
to see the attribute names and descriptions.Tried that and "associated_gene_name" comes up but R outputs the same error:
Yes, because associated_gene_name is not an attribute name. You need find the attribute name on the list of attributes.