name_of_tips: Get tip names.

View source: R/phylo_utils.R

name_of_tipsR Documentation

Get tip names.

Description

This is a support function for the main function toPhylo_transmatOrigin.

Function that gets the name of the tip in the form of ID_origin or ID_migrant because we can observe duplicates (when in the form ID_origin or ID_migrant), we need to remove those from the phylogenetic tree.

Usage

name_of_tips(dup_tip, row_int)

Arguments

dup_tip

Vector of duplicated tips

row_int

data.frame of the row of interest. The row in the transmission matrix that have the oldest time step based on duplicated value. See time_atSeroconversion and get_newTip_names.

Value

vector of ID_origin or ID_migrant.


thednainus/HIVepisimAnalysis documentation built on Sept. 21, 2023, 7:32 a.m.