Make a custom GMT file
1
0
Entering edit mode
4.2 years ago
xandinho2468 ▴ 20

I want to create a .gmt file to use gprofiler on a annotaion on non. model organism

My input file is like this:

gene000016    GO:0005515
gene000021    GO:0005515
gene000027    GO:0044464
gene000010    GO:0005515
gene000011    GO:0015074

And I want to convert it like this:

GO:0005515 NA gene000016 gene000021 gene000010
GO:0044464 NA gene000027
GO:0015074 NA gene000011

So basically putting the GO-term in column 1, some random text in col2 and the genes from col1 in the input file on a line after the go-term.

Is there a way to do it in python?

GMT • 4.1k views
ADD COMMENT
0
Entering edit mode
ADD COMMENT

Login before adding your answer.

Traffic: 2809 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6