Skip to content

biouno/mega-pairwise-distance-matrix2column

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MEGA Pairwise Distance Matrix2Column converter

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 1Species 2Dist
arthuri_MG33_13_7strodeiES09_10.04039287
arthuri_MG33_13_7strodeiES09_30.03866546
strodeiES09_1strodeiES09_30.01639325
arthuri_MG33_13_7strodeiVP06_6_40.03871664
strodeiES09_1strodeiVP06_6_40.01475963
strodeiES09_3strodeiVP06_6_40.00813598

About

MEGA pairwise distance matrix2column

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages