Replies: 6 comments
-
Have you tried? What did the output say to you? If you supply a distance structure to The only complication is that you must supply a structure that are dissimilarities or distances like defined in R and can be recognized as such, or a symmetric square matrix. There are some non-conforming R packages that do not supply such results although they say they produce distances or dissimilarities. I have no idea what is the package that you used to find UniFrac distances, neither do I know how their result is structured. If the result are not a legal R distances, you should change them to distances, and they will be recognized as such in |
Beta Was this translation helpful? Give feedback.
-
Where @jarioksa says From
So for If you pass it a |
Beta Was this translation helpful? Give feedback.
-
Actually, both Here is the test we use in in ## metaMDSdist should get a raw data matrix, but if it gets a
## 'dist' object return that unchanged and quit silently.
if (inherits(comm, "dist") ||
((is.matrix(comm) || is.data.frame(comm)) &&
isSymmetric(unname(as.matrix(comm)))))
return(comm) |
Beta Was this translation helpful? Give feedback.
-
I think we need to change the documentation then as
but the code does check, in the case of a matrix being passed, if said matrix is symmetric and if it is it coerces to the required dist class. |
Beta Was this translation helpful? Give feedback.
-
@gavinsimpson We have similar handling of input dissimilarities in |
Beta Was this translation helpful? Give feedback.
-
@jarioksa OK; I'll take a look later this week and see if any of the |
Beta Was this translation helpful? Give feedback.
-
Suppose I have a distance matrix created by applying the weighted unifrac measure. For instance, using a
phyloseq
object:weighted_unifrac
is now a distance matrix. Then I perform PERMANOVA usingadonis
, and showing the defaultmethod
parameter:What is
method
doing here? I think of Bray-Curtis as a way to generate the distance matrix itself. How would my choice of anothermethod
value affect my PERMANOVA analysis?Beta Was this translation helpful? Give feedback.
All reactions