Thank you, I was able to get this to work for a short list of genes. For my full list of genes, I get this error
Error in getBM(mart = ensembl, attributes = c("ensembl_gene_id", "external_gene_name", :
object 'genes' not found
My guess is because some of the gene names might not be correct "external gene name". Is there a way to filter out those genes, or at least do a quality control check to see if a given gene name is recognized by ensemble?
Thank you, I was able to get this to work for a short list of genes. For my full list of genes, I get this error
My guess is because some of the gene names might not be correct "external gene name". Is there a way to filter out those genes, or at least do a quality control check to see if a given gene name is recognized by ensemble?
Can you post the full command you're running?
Here is the code I am using- I am able to do it with the first few genes in my list:
But when I paste all my genes I get errors. It might be a syntax error somewhere.
I copy/paste the list of genes from a text file (see below)- is there a better way to load my genes into the genes object?
Thank you
If you have all of your genes in a text file load them into R programmatically instead of with copy/paste.
Thank you, this worked!