This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Mantel Test of genome size difference and genetic distance in R

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

1 answer

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

Log in to answer this question.