get_effective_coi: Extract Effective COI by Loci from SWF Simulation for a...

View source: R/get_results.R

get_effective_coiR Documentation

Extract Effective COI by Loci from SWF Simulation for a Single Host

Description

From a single host in a SWF Simulation, extract the effective COI for loci within the ARG. Effective COI is defined as the number of non-coalesced genomes at the end of tlim. Note, this framework is an independent process for each recombination event and thus will vary along the simulated genome (but not necessarily by locus).

Usage

get_effective_coi(swf, host_index = NULL)

Arguments

swf

result of forwards simulation using the function sim_swf()

host_index

a vector of target hosts. Defaults to all hosts

Details

Function limited to a single host per "realization"

Value

vector of effective COI by loci


nickbrazeau/polySimIBD documentation built on Sept. 26, 2024, 5:29 p.m.