get_neighbour_topos finds all topologies where two species are sister species

get_neighbour_topos(topo_plots, left_neighbour, right_neighbour)

Arguments

topo_plots

tibble containing the topologies (in column 'phylo')

left_neighbour

string (species identifier for left neighbor)

right_neighbour

string (species identifier for right neighbor)

Details

First the distances of all species within all topologies are created. This is subset for the topologies where the distance between the two species equals 2 (2 edges).

See also