Fig. 5
From: Host-mediated selection impacts the diversity of Plasmodium falciparum antigens within infections

Infection simulations. For each study site, we created 10,000 simulated datasets to test whether haplotypes are distributed across infections according to simple random sampling from the population. Haplotype counts within the n infections were held constant while the identity of each haplotype was resampled from the complete pool of sequenced haplotypes. To determine whether selection affects infection composition, we compared the diversity within the observed and simulated infections at each amino acid position and across the entire amplicon