Question: Mantel Test of genome size difference and genetic distance in R
0
gravatar for nick.w.jeffery3
4.4 years ago by
Canada
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.6k views
ADD COMMENTlink modified 2.4 years ago by Biostar ♦♦ 20 • written 4.4 years ago by nick.w.jeffery310
0
gravatar for Brice Sarver
4.4 years ago by
Brice Sarver2.9k
United States
Brice Sarver2.9k 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.4 years ago by Brice Sarver2.9k
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: 887 users visited in the last hour