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:
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.