Arrange Table for orthogroup categorization
0
0
Entering edit mode
5.0 years ago
ysas ▴ 10

Hi all,

I would like to make Venn-diagram by pairwisely comparing orthogroups generated from 4 different strains. I have run Inparanoid and got a list of all paired orthogroups (e.g., SQLtable). However, I am in trouble making Venn-diagram by determining "Core", "Accessary", and "Singleton" from the output from Inparanoid. If you have a similar experience, could you please share your idea with me?

Or, if you help me how to transform the output table from Inparanoid below, I may go further by myself.
[Original]

1 tfs232

1 tfs235

2 tfs148

2 tfs146

3 tfs139

3 tfs178

3 tfs179

*The total table length is ~1000 and the No. ranges from 2~5. So, I cannot just extract odd and even rows.

[This is what I want to make]

1 tfs232 tfs235

2 tfs148 tfs146

3 tfs139 tfs178 tfs179

Thanks.

alignment • 632 views
ADD COMMENT
0
Entering edit mode

Here's how you can do it : awk '{tass[$1]=tass[$1]"\t"$2}END{for(i in tass){print i"\t"tass[i]}}' your file then to know which are "Core", "Accessary", and "Singleton" it depends on your data.

ADD REPLY

Login before adding your answer.

Traffic: 1699 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