convert_barcode_vectors converts human barcode vectors to nums and calculated COIs.

convert_barcode_vectors(
  sim_save,
  ID,
  sub_patents_included = TRUE,
  ibd = FALSE,
  nl = 24,
  COI_type = "pcr_imperial"
)

Arguments

sim_save

Saved output of simulation

ID

Vector of detection immunities for the population

sub_patents_included

Boolean as to whether subpatents are included. Default = TRUE

ibd

Boolean for IBD simulations. Default = FALSE

nl

Numeric for number of loci. Default = 24

COI_type

String for type of COI calculation. Default = "pcr_imperial"

convert_barcode_vectors