knnn | R Documentation |
This function creates a network with the k best neigbours of each genome (or pangenome). The network can be buid with the best neigbours with or without repetitions. The option repeats establish if the best k neigbours includes bi-directional links or not. Let be G_i and G_j two genomes, if G_i is one of the best k-neighbours of G_j and G_j is one of the best k-neighbours of G_i if the repeats option is TRUE then G_i is removed from the k-neighbour and substituted be the next best neighbour in other case G_i keeps in the list.
knnn(data, n_neigh, repeats = TRUE, threshold = 1)
data |
An Accnet or Mash object |
n_neigh |
The number of best K-Neighbours |
repeats |
Boolean Include repetitions? |
threshold |
Minimum value to create an edge. |
Returns an igraph object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.