Thanks Istvan for your reply. I think these programs will do the same as Trinotate. Trinotate searches against numerous databases and generate an annotation report. I now have that annotation report and I extracted the GO terms in a two columns file with the first for the genes ids (TRINITY_DN100006_c0_g1, TRINITY_DN100020_c0_g1, .....) and the second column for the GO ids (GO:0000054,GO:0000055,GO:0000056,GO:0000122,GO:0000776,GO:0003674,GO:0003676,GO:0003723,GO:0005049,GO:0005215,....) with some genes having so many GO ids.
I will do DGE and I would like to perform GSEA for significantly differentialy expressed genes and to categorize the GO terms into general functions such as immunity and reproduction and so on.
I also want to assign the genes to the same general functions!