Make a custom GMT file
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?
• 4,863 views
•
link
1 answer
• 0 views
•
link
Log in to answer this question.