Mantel Test of genome size difference and genetic distance in R
1
0
Entering edit mode
9.6 years ago

I am trying to conduct a Mantel test in R for 32 species on differences in genome size between each species and the genetic distances for 28S gene between all species. I calculated genetic distance in MEGA6. What is the best way to get this data into R? The MEGA genetic distances are output matrix-style in a CSV file but I don't know how to transform this data into an R-appropriate matrix for the test. Thanks in advance.

R genome • 2.6k views
ADD COMMENT
0
Entering edit mode
9.6 years ago
Brice Sarver ★ 3.8k

read.csv if your data is a true CSV, read.table if tab (or other) delimited.

Afterwards, it's simple to coerce to a matrix or data frame: ?matrix ?data.frame

ADD COMMENT

Login before adding your answer.

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