This project provides a simple parser that reads MEGA CC output, extracts the list of species and its distances matrix, and outputs the distances as a pairwise column.
e.g.: The matrix below:
(...) # the parser ignores the rest of the file [ 1] #arthuri_MG33_13_7 [ 2] #strodeiES09_1 [ 3] #strodeiES09_3 [ 4] #strodeiVP06_6_4 [ 1 2 3 4 ] [ 1] [ 2] 0.04039287 [ 3] 0.03866546 0.01639325 [ 4] 0.03871664 0.01475963 0.00813598
Would output:
Species 1 | Species 2 | Dist |
---|---|---|
arthuri_MG33_13_7 | strodeiES09_1 | 0.04039287 |
arthuri_MG33_13_7 | strodeiES09_3 | 0.03866546 |
strodeiES09_1 | strodeiES09_3 | 0.01639325 |
arthuri_MG33_13_7 | strodeiVP06_6_4 | 0.03871664 |
strodeiES09_1 | strodeiVP06_6_4 | 0.01475963 |
strodeiES09_3 | strodeiVP06_6_4 | 0.00813598 |