Closed hanghu1024 closed 2 years ago
Dear Hang,
The knn algorithm works only for dissimilarities, not for associations. So, your matrix must be a dissimilarity matrix and you have to set the "datatype" argument to "dissimilarity". In the resulting network, nodes will be the samples, not the taxa.
Best, Stefanie
Hello Stefanie,
Got it, thanks!
Best, Hang
Hi!
I am trying to construct the graph with knn algorithm. My data is a pre-computed association matrix, and my parameters are listed below:
But I get the error message:
You give an tutorial example for knn using count data, but does it work for association matrix? If so, is there a way to fix this bug? In addition, the default value for kNeighbor is 3L, what's the point for "L" here? I am using version 1.0.2, and I got some success with threshold method for this data.
Many thanks!
Hang