Processes SNP read-count data and optionally population-level minor allele frequencies (PLMAF), then estimates COI with both the frequency and variant methods from the coiaf package (Suggests; not installed with PGEcore).
Details
Inputs
snp_calls: SNP-calls data frame (specimen_name,snp_name,reads,seq_base). Seevignette("input-formats", package = "PGEcore").plmaf: Optional PLMAF data frame (snp_name,seq_base,plmaf). IfNULL, PLMAF is calculated fromsnp_calls.
Outputs
Returns a data frame with
specimen_name,coi_freq, andcoi_variant(not written to disk). For file I/O, usecoiaf_wrapper().
Running
run_coiaf(snp_calls = snp_df, plmaf = plmaf_df)File and CLI users should call coiaf_wrapper() /
Rscript exec/coiaf_wrapper ....
Requires coiaf (Suggests).