Entering edit mode
Hi,
I am using the topGO package and I got very strange results:
I made a go2genes list myself, downloading go annotation mapping ensembl gene id with biomart :
> mart <- useMart(biomart="ENSEMBL_MART_ENSEMBL",host="feb2014.archive.ensembl.org", path="/biomart/martservice", dataset="mmusculus_gene_ensembl") > ensemblGene_go <- getBM(attributes=c("ensembl_gene_id","go_id","external_gene_id"),filters="ensembl_gene_id", values=ensembl$ensembl_geneID,mart=mart) > head(ensemblGene_go ) ensembl_gene_id go_id external_gene_id 1 ENSMUSG00000013653 GO:0008150 1810065E05Rik 2 ENSMUSG00000013653 GO:0005575 1810065E05Rik 3 ENSMUSG00000013653 GO:0003674 1810065E05Rik 4 ENSMUSG00000058287 GO:0008150 Gm12253 5 ENSMUSG00000058287 GO:0046849 Gm12253 6 ENSMUSG00000058287 GO:0005575 Gm12253 > go2ensemblGene <- split(ensemblGene_go$ensembl_gene_id,ensemblGene_go$go_id) > go2ensemblGene[1:2] $`GO:0000002` [1] "ENSMUSG00000022889" "ENSMUSG00000033845" "ENSMUSG00000030879" [4] "ENSMUSG00000090262" "ENSMUSG00000019699" "ENSMUSG00000030557" [7] "ENSMUSG00000027424" $`GO:0000003` [1] "ENSMUSG00000029061"
I then make my topGO object:
> GOdata <- new("topGOdata", ontology="BP", annot=annFUN.GO2genes, GO2genes=go2ensemblGene, allGenes=GeneList,nodeSize=5,geneSel=topClusterGenes)
Then, if I call genesInTerm() for some GO term, the mapping between genes and go term does not fit at all!
> genesInTerm(GOdata,"GO:0051053") $`GO:0051053` [1] "ENSMUSG00000022878" "ENSMUSG00000032633" "ENSMUSG00000036086" [4] "ENSMUSG00000036986" "ENSMUSG00000045658" "ENSMUSG00000046323" [7] "ENSMUSG00000046697" "ENSMUSG00000054272" "ENSMUSG00000056758" > go2ensemblGene["GO:0051053"] $`GO:0051053` [1] "ENSMUSG00000026241" "ENSMUSG00000053647"
another example:
> genesInTerm(GOdata,"GO:0051055") $`GO:0051055` [1] "ENSMUSG00000025856" "ENSMUSG00000032715" "ENSMUSG00000033161" [4] "ENSMUSG00000036856" "ENSMUSG00000047638" > go2ensemblGene["GO:0051055"] $`GO:0051055` [1] "ENSMUSG00000041333" "ENSMUSG00000078686" "ENSMUSG00000094793" [4] "ENSMUSG00000078675" "ENSMUSG00000078673" "ENSMUSG00000078672"
I guess I do something wrong when I create the topGO object, but I followed the vignette and my annotation seems alright...
Any idea?
If needed my sessionInfo: