Previous topic

bioa.util.validation.hamming_distance

Next topic

bioa.util.validation.shannon_entropy

This Page

bioa.util.validation.mean_diversity

mean_diversity(amp1, amp2, overlap, sample_size)[source]

Estimate/Compute the mean overlap diversity.

Parameters :

amp1 : bioa.Amplicons

First amplicon set to use in estimation.

amp2 : bioa.Amplicons

Second amplicon set to use in estimation.

overlap : int

The amount that reads from amp1 overlap with reads in amp2.

sample_size : int

The amount to use in the sample for estimation.

Returns :

mean_diversity : float

Mean overlap diversity value from the smaple.