Entering edit mode
3.7 years ago
cthangav
▴
110
Hello, Given a list of gene names, I need to create a table containing the Ensemble ID, chromosome, start, end of that gene. Example:
## ens_id gene view chr start end
## 1: ENSG00000243485 MIR1302-2HG Gene Expression chr1 29553 30267
## 2: ENSG00000237613 FAM138A Gene Expression chr1 36080 36081
## 3: ENSG00000186092 OR4F5 Gene Expression chr1 65418 69055
What command can I use to look up ensemble IDs and start/end locations of genes?
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!