Calculate isolate-isolate sequential overlap
Source:R/cluster_overlap.R
isolate_isolate_sequential_overlap.RdFor every ordered pair of isolates, counts the days on which the recipient was at a location the
donor had occupied on a strictly earlier day, capturing potential indirect transmission via a
shared location. Pairs with any concurrent co-location are excluded, since that is direct
overlap and is handled by isolate_isolate_overlap().
Arguments
- isolate_lookup
A lookup table for isolates and their cluster assignments with other relevant epidemiological information. See
get_isolate_lookup().- trace_mat
A patient-by-date matrix of location occupancy (patients in rows, dates in columns); a positive value marks a patient's location on a given day.