time_atSeroconversion: Get the time of duplicates at seroconversion.

View source: R/phylo_utils.R

time_atSeroconversionR Documentation

Get the time of duplicates at seroconversion.

Description

This is a support function for the main function toPhylo_transmatOrigin.

Usage

time_atSeroconversion(dup_rows, get_time)

Arguments

dup_rows

matrix of list of matrices of transmat that have duplicated vertex IDs.

get_time

vector of oldest time

Details

During the simulations, vertex can migrate from region to global or global to region. When adding the information of migrant or origin to the tip name, we will observe duplicated on vertex IDs because it can be in region at one time point but later in global, for example. This function will get the duplicated rows in the transmission matrix in which a duplicated vertex is observed. It will then get the time observed for each duplicated vertex based on get_time. Basically it will return the origin at time of seroconversion.


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