How to load megacc output into R?
1
0
Entering edit mode
7.8 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.

R Mega • 1.8k views
ADD COMMENT
0
Entering edit mode
4.7 years ago
Nick • 0

Ever find an answer?

ADD COMMENT

Login before adding your answer.

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