View source: R/phyloscan.fun.private.R
phsc.get.pairwise.relationships | R Documentation |
This function calculates pairwise relationships of two individuals in any window. Several different relationship groups can be calculated, for example just using pairwise distance, or using both pairwise distance and topology to define likely pairs.
phsc.get.pairwise.relationships(
df,
get.groups = c("TYPE_PAIR_DI2", "TYPE_PAIR_TO", "TYPE_PAIR_TODI2x2",
"TYPE_PAIR_TODI2", "TYPE_DIR_TODI2", "TYPE_NETWORK_SCORES", "TYPE_CHAIN_TODI",
"TYPE_ADJ_NETWORK_SCORES", "TYPE_ADJ_DIR_TODI2"),
make.pretty.labels = TRUE
)
df |
data.table to which new columns of relationship groups will be added. Must contain a column with name TYPE_DIR_TODI7x3. This column contains fundamental relationship states for every window, from which other relationships are derived. |
get.groups |
names of relationship groups |
make.pretty.labels |
Logical |
input data.table with new columns. Each new column defines relationship states for a specific relationship group.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.