I have a file with thousand of lower triangular matrices (one under the other):
1|Gene1_PRT1
2|Gene2_PRT1 0
2|Gene3_PRT1 0 0
1|Gene7_PRT1 1.4287 1.4287 1.5293
2|Gene9_PRT1 1.4428 1.4428 1.5293 0
2|Gene90_PRT1
1|Gene60_PRT1 1.6242
2|Gene26454_PRT1 -1 -1
And I need a list/table with the pairwise (gene) name on the left and values (where the diagonal, 0 comparison with itself are removed). Like:
2|Gene68760_PRT1 1|Gene32540_PRT1 0
2|Gene99122_PRT1 1|Gene32540_PRT1 0
1|Gene2362_PRT1 1|Gene32540_PRT1 1.4287
2|Gene63993_PRT1 1|Gene32540_PRT1 1.4428
2|Gene99122_PRT1 2|Gene68760_PRT1 0
1|Gene2362_PRT1 2|Gene68760_PRT1 1.4287
2|Gene63993_PRT1 2|Gene68760_PRT1 1.4428
1|Gene2362_PRT1 2|Gene99122_PRT1 1.5293
2|Gene63993_PRT1 2|Gene99122_PRT1 1.5293
2|Gene63993_PRT1 1|Gene2362_PRT1 0
単純な grep などの機能を少し試してみたところ、値のリストはありますが、左側にペアごとの名前はありません。私は(バイオ)インフォマティクスの初心者で、学ぼうとしています...