Question: Mantel Test of genome size difference and genetic distance in R
gravatar for nick.w.jeffery3
4.9 years ago by
nick.w.jeffery310 wrote:

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.8k views
ADD COMMENTlink modified 2.9 years ago by Biostar ♦♦ 20 • written 4.9 years ago by nick.w.jeffery310
gravatar for Brice Sarver
4.9 years ago by
Brice Sarver3.5k
United States
Brice Sarver3.5k wrote:

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 COMMENTlink written 4.9 years ago by Brice Sarver3.5k
Please log in to add an answer.


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