Entering edit mode
8.0 years ago
joreamayarom
▴
140
I'm using megacc (MEGA's version for DEBIAN) to produce pairwise difference matrices. Now, I want to load the matrices into R for further analysis. MEGA's format looks like this
#mega
!Title: ;
!Format DataType=Distance DataFormat=LowerLeft NTaxa=16;
!Description
No. of Taxa : 16
... More INFO ...
;
[ 1] #Outgroup
[ 2] #Seq
... More IDs ...
[ 1 2 3 4 5 ....
[ 1]
[ 2] 1245.00000000
[ 3] 1180.00000000 1146.00000000
[ 4] 1185.00000000 1149.00000000 59.00000000
[ 5] 1188.00000000 1154.00000000 58.00000000 43.00000000
Is there a way to safely upload this output file into R? Or even better, produce MEGA output that is already R compatible? Bear in mind that I'm using the command line version of MEGA and not the GUI, which easily allows to export data in csv format.