phsc.get.pairwise.relationships: Calculate pairwise relationships

View source: R/phyloscan.fun.private.R

phsc.get.pairwise.relationshipsR Documentation

Calculate pairwise relationships

Description

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.

Usage

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
)

Arguments

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

Value

input data.table with new columns. Each new column defines relationship states for a specific relationship group.


olli0601/Phyloscanner.R.utilities documentation built on April 21, 2024, 1:59 p.m.