Skip to contents

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)