Why is the distance matrix I upload into R not symmetric?

62 views Asked by At

I am trying to upload a distance matrix for a PCoA plot produced by the qiime2 pathway into R for data transformation. I can't seem to attach the file here, but here is an example of what the file looks like:

sample distance matrix

The distance matrix is symmetrical in qiime, so the issue should lie within R. I imported the dataset using dm <- read.csv(file = "dm.csv", header = FALSE, row.names = 1) in R.

When I test to see if the distance matrix is symmetrical using isSymmetric.matrix(dm), the output is 'FALSE'. Any guidance as to how I would get a symmetrical distcance matrix would be greatly appreciated.

0

There are 0 answers