time_atSeroconversion | R Documentation |
This is a support function for the main function
toPhylo_transmatOrigin
.
time_atSeroconversion(dup_rows, get_time)
dup_rows |
matrix of list of matrices of transmat that have duplicated vertex IDs. |
get_time |
vector of oldest time |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.