check_linked_transmissions: Check whether a pair of individuals are linked by two or more...

View source: R/summary_utils.R

check_linked_transmissionsR Documentation

Check whether a pair of individuals are linked by two or more individuals.

Description

This function will check whether a pair of individuals (host.1 and host.2) are linked because intermediary individuals were involved. For example, host.3 infected host.1 and host.2.

Usage

check_linked_transmissions(df1, tm)

Arguments

df1

Dataframe containing information of summarized results obtained with phyloscanner after running the function summarize_trans.

tm

Dataframe of transmission matrix containing information of who transmitted to whom and at what time transmission happened.

Value

Dataframe with a new column "trans" with only the pair of individuals that are linked. The value for column "trans" will be "linked" or "not linked".


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