Hi, im trying to run enricher() from clusterprofiler and in getting an error "--> No gene can be mapped.... --> Expected input gene ID: GO:0002831,GO:0045184,GO:1901698,GO:0007017,GO:0017076,GO:0033365 --> return NULL..."
this is the code im using and my data.tables:
enrichment_results <- enricher(
gene = gene_list_inv,
TERM2GENE = genes2go,
TERM2NAME = NULL,
universe = NULL, # Optionally specify the universe of genes if not using the entire genome
pvalueCutoff = 0.05,
pAdjustMethod = "BH")
sessionInfo( )
> enrichment_results <- enricher(
+ gene = gene_list_inv,
+ TERM2GENE = genes2go_2,
+ TERM2NAME = NULL,
+ universe = NULL, # Optionally specify the universe of genes if not using the entire genome
+ pvalueCutoff = 0.05,
+ pAdjustMethod = "BH"
+ )
--> No gene can be mapped....
--> Expected input gene ID: GO:0002831,GO:0045184,GO:1901698,GO:0007017,GO:0017076,GO:0033365
--> return NULL...
these are the input data.tables:
> print(gene_list_inv)
GID
<char>
1: LOC119360363
2: LOC119360381
3: LOC119361995
4: LOC119361997
5: LOC119362003
6: LOC119362007
7: LOC119362023
8: LOC119367010
9: LOC119367016
10: LOC119367018
11: LOC119367024
12: LOC119367043
13: LOC119367043
> print(genes2go_2)
GID GO
<char> <char>
1: LOC119357312 GO:0043229
2: LOC119357312 GO:0005198
3: LOC119357312 GO:0044434
4: LOC119357312 GO:0043226
5: LOC119357312 GO:0044238
---
2003725: LOC119348655 GO:0072593
2003726: LOC119348655 GO:0097159
2003727: LOC119348655 GO:0048037
2003728: LOC119348655 GO:0055114
2003729: LOC119348655 GO:0016684
the genes in gene_list_inv do appear in the genes2go_2, there are no space characters either...
can anyone assist?
Thanks
Thanks Guido, I tried that too, unfortunately it still isn't working
It does for me! Please check that the inputs are in the proper format!
Note that when creating the
gene2go
input I incorrectly assigned the first 2 genes in your input listgene_list_inv
to thegenes2go
data frame (so that some input genes have a GO annotation). Still an error is reported, but that has to do with the very limited sized input I used (and not with the input not being recognized).It worked!!! Thanks alot, i think something in the gene_list wasnt right...
Thanks agian