This function builds a graph using a dist
object and a cut-off distance beyond which individuals are no longer connected. It also identifies clusters of connected individuals from the graph. If no cut-off is provided, a histogram is displayed for interactive selection.
vimes_prune(x, cutoff = NULL, graph_opt = vimes_graph_opt(), ...)
dist
object.vimes_graph_opt
.hist
.a list containing:
igraph
class (from the igraph
package).The cutoff is inclusive: only cases strictly further away
than the cutoff distance will be disconnected on the graph. Note
that this differs from the original gengraph
implementation
in the package adegenet
.
the function gengraph
in the package adegenet
, which
was an initial implementation of the same idea in a genetics
context.