getCOI: Calculate COI

View source: R/prep.R

getCOIR Documentation

Calculate COI

Description

Calculates complexity of infection for a list of samples, using the number of detected alleles.

Usage

getCOI(dsmp, lrank = 2)

Arguments

dsmp

a list with each element corresponding to one sample.

lrank

the rank of the locus that will determine a sample's COI (loci are ranked by the number of detected alleles).

Value

a vector with estimated COI for each sample.

Examples

coi <- getCOI(dsmp, lrank = 2)

innager/dcifer documentation built on May 21, 2024, 1:23 a.m.