get_newTip_names: Get tip names based on duplicated rows.

View source: R/phylo_utils.R

get_newTip_namesR Documentation

Get tip names based on duplicated rows.

Description

This is a support function for the main function toPhylo_transmatOrigin.

Usage

get_newTip_names(dup_tip, el_ori)

Arguments

dup_tip

Vector of duplicated tips

el_ori

Matrix of edge list and information on origin or migration

Value

A vector of the duplicated vertex in the form of ID_origin or ID_migrant. Based on the time of duplicated rows at seroconversion (see time_atSeroconversion), it will return the tip name that should be in the phylogenetic tree. I used the origin or migrant information observed at the time of seroconversion.


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