Question: How to load megacc output into R?
0
gravatar for joreamayarom
4.1 years ago by
joreamayarom140
USA/Cambridge
joreamayarom140 wrote:

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.

mega R • 916 views
ADD COMMENTlink modified 11 months ago by Nick0 • written 4.1 years ago by joreamayarom140
0
gravatar for Nick
11 months ago by
Nick0
USA
Nick0 wrote:

Ever find an answer?

ADD COMMENTlink written 11 months ago by Nick0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1056 users visited in the last hour