 Research
 Open Access
 Published:
Approaches to estimating inbreeding coefficients in clinical isolates of Plasmodium falciparum from genomic sequence data
Malaria Journalvolume 15, Article number: 473 (2016)
Abstract
Background
The advent of wholegenome sequencing has generated increased interest in modelling the structure of strain mixture within clinical infections of Plasmodium falciparum The life cycle of the parasite implies that the mixture of multiple strains within an infected individual is related to the outcrossing rate across populations, making methods for measuring this process in situ central to understanding the genetic epidemiology of the disease.
Results
This paper derives a set of new estimators for inferring inbreeding coefficients using whole genome sequence read count data from P. falciparum clinical samples, which provides resources to assess withinsample mixture that connect to extensive literatures in population genetics and conservation ecology. Features of the P. falciparum genome mean that standard methods for inbreeding coefficients and related Fstatistics cannot be used directly. After reviewing an initial effort to estimate the inbreeding coefficient within clinical isolates of P. falciparum, several generalizations using both frequentist and Bayesian approaches are provided. A simpler, more intuitive frequentist estimator is shown to have nearly identical properties to the initial estimator both in simulation and in real data sets. The Bayesian approach connects these estimates to the Balding–Nichols model, a mainstay within genetic epidemiology, and a possible framework for more complex modelling. A simulation study shows strong performance for all estimators with as few as ten variants. Application to samples from the PF3K data set indicate significant acrosscountry variation in withinsample mixture. Finally, a comparison with results from a recent mixture model for withinsample strain mixture show that inbreeding coefficients provide a strong proxy for these more complex models.
Conclusions
This paper provides a set of methods for estimating inbreeding coefficients within P. falciparum samples from wholegenome sequence data, supported by simulation studies and empirical examples. It includes a substantially simple estimator with similar statistical properties to the estimator in current use. These methods will also be applicable to other species with similar lifecycles. Implementations of the methods described are available in an opensource R package pfmix. Estimates for the PF3K public data release are provide as part of this resource.
Background
While genetic factors play a crucial role in the emergence of drug resistance within Plasmodium falciparum, many aspects of the genetic epidemiology of the parasite remain obscure [1, 2]. The beginnings of a global perspective on the genetic structure of parasite populations emerged from the analysis of wholegenome sequencing data (WGS) derived from ~200 parasite genomes collected directly from clinical patients in six countries on three continents [3]. This study gave further evidence for the widespread presence of withinisolate strain mixture and significant amounts of variation in its degree across continents. In grappling with the complexity of WGS read count data, the study departed from standard approaches for quantifing the amount of withinsample variation by instead using an inbreeding coefficient, \(f_{ws}\), a form of Fstatistic.
Strain mixture has been traditionally assessed via multiplicity of infection (MOI) [4–6], using methods for inferring the number of strains from singlenucleotide polymorphisms (SNPs) or other typing technologies applied at a small number of loci. Researchers have subsequently shown how finite mixture models can infer MOI using WGS but the under the heading of complexity of infection (COI) as these models can capture additional mixture features [7, 8]. Still, inbreeding coefficients have a long connection to population genetics and conservation biology and may be of interest to researchers connecting P. falciparum studies to other genetic contexts [9, 10]. This paper presents a collection of statistical methods for estimating \(f_{ws}\), explores their performance in simulation, details their connection to COI estimates, and confirms the variation in \(f_{ws}\) values across countries using the P. falciparum 3000 genomes (PF3K), a publicly available data resource.
Inbreeding coefficients and the Fstatistics from which they derive are measurements of the departure of allelic heterozygosity observed within a population from those expected at Hardy–Weinberg equilibrium (HWE) [10, 11]. HWE specifies the distribution of alleles assuming panmixia, a population exhibiting perfectly random mating with an absence of mutation, migration, drift, selection or other effects [12]. Fstatistics calibrate the empirical allele distribution within a subpopulation against those expected under HWE, ranging from a value of one (no mixture) to zero (perfect HWEtype mixture). In the context of comparing the parasites’ genetic diversity within a single infected individual relative to the local geographic population (and absent any geographic structuring of the population, i.e. the Wahlund effect), these statistics effectively become inbreeding coefficients. \(f_{ws}\) denotes the relative amount of inbreeding within an individual sample (w) relative to the expected amount in a subpopulation (s). Since here estimates are only considered only relative to a single country (subpopulation), the use of paired subscripts, \(f_{ws}\) is deprecated in favour of \(f_i\) for a specific sample i.
Fstatistics have proven to be an effective and extremely popular means for investigating species’ population structure from both allelic and genomic data [10, 13, 14]. However, standard software tools assume specific ploidy structures incommensurate with WGS data from P. falciparum and so cannot be used directly. The critical difference is that, within a human host, P. falciparum exists only in the haploid stage of its lifecycle [15]. Since shortread WGS data cannot yet capture full haplotypes, individual reads cannot be uniquely identified with their strain of origin. Without being able to associate reads to individual P. falciparum strains, no ’outofthebox’ use of standard Fstatistics approaches with this new data appears possible.
Several earlier works have applied the Fstatistic framework to P. falciparum withinsample mixture. These concepts—while not under the heading of inbreeding coefficients—undergird much of the seminal work on MOI estimation [5, 6]. More recently, Manske et al. [3] provided an initial estimator for inbreeding coefficients using WGS based on the slope of a modified regression line between the expected and observed heterozygosity within a sample. Auburn et al. [16] explores the connection between this estimator and standard MOI approaches by comparing these estimates with MOI values inferred by genotyping the msp1 and msp2 genes, showing strong correlation between these values in their sample sets.
This estimator has been further utilized in a number of recent studies on P. falciparum, including analyses of populations in the Gambia, Ghana, and Guinea [17, 18]. It has also been used in analysis of the population structures of Plasmodium vivax and Plasmodium knowlesi [19, 20]. A recent examination of this estimator in the context of microsatellite genotyping explores a strong relationship between the number of variants, allele frequency, and estimator performance[21]. There has been otherwise little statistical work characterizing this estimator or it’s properties. This paper seeks to remedy some of this deficit by providing: a simple presentation of this estimator; a set of alternate estimators that make stronger connections to the tradition around Fstatistics; an investigation of their properties through simulations; and several applications to relevant data sets.
This paper proceeds as follows. First, an overview of the data and the notation is provided. The initial estimator employed by Manske et al. [3] for estimating \(f_i\) is then reviewed, followed by the presentation of two additional frequentist estimators. A Bayesian approach for these statistics is then derived from the the Balding–Nichols model. All of these estimators are compared in an extensive simulation study. To consider their empirical performance, the correlation across all estimators in 344 Ghanaian samples is examined and the Bayesian estimates are compared to COI estimates. To show the performance under controlled circumstances, we apply the methods to several clonal laboratory strains. As a final example, the estimates for the PF3K sample set are presented for each country, confirming significant variation in the amount of withinsample mixture across countries. The conclusion provides brief discussion of the strengths and limitations of the approaches, and possible future directions for modelling withinsample mixture using WGS.
Data and models
Data and preparation
The data used comes largely from Release 3.0 of the PF3K resource. An overview of this project, collection protocols, and a full sequencing protocol can be found at the consortial website [22]. For all the samples considered below, data come from Illumina HiSeq sequencing applied to clinical P. falciparum samples collected from 14 countries. Starting from the publicly available vcf files, samples from Nigeria and Senegal were also excluded due to sample size and differing sequencing technology, respectively. First, only positions that exhibited minor allele frequencies greater than 0.01 were retained. Variants were furthered filtered at the country level by removing samples that exhibited fewer than 80 % of variant positions with at least 20× coverage. SNPs with less than 20× coverage were then removed from all remaining samples. This yielded variable number of SNPs within countries, from 1108 in Cambodia to 6596 in Laos. The number of samples within each country ranged from 35 for Laos to 344 in Ghana. Four additional samples—two replicates each of DD2 and 7G8—were taken from Release 5.0 of the PF3K resource for use as negative control. Each of these samples comprised a single, unmixed strain and was sequenced to high coverage (~65×). These were cleaned according to the steps above, yielding 23,109 viable positions. A subset of 1000 SNPs were randomly selected of those remaining for inference here.
Notation
Within a country, samples are indexed \(i = 1, \ldots , N\) and the SNPs by \(j=1,\ldots ,M\). At SNP j within sample i, we observe \(r_{ij}\) reads that agree with the reference, and \(n_{ij}\) reads that are different from the reference. \(p_{ij}\) denotes the allele frequency for reference allele for SNP j in sample i and estimate it via the maximumlikelihood estimator (MLE) for proportions: \(\hat{p}_{ij} = \frac{r_{ij}}{r_{ij} + n_{ij}}\). Similarly, \(p_j\) denotes the populationlevel reference allele frequency for each SNP and is estimated according to the acrosssample MLE:
All MLEs are calculated by country. Table 1 is provided as a reference to the reader for notation.
A previous frequentist estimator for \(f_i\), and two alternatives
In Manske et al., the authors provide an initial approach to estimating \(f_i\). This estimator is referred to as \(f_i^{(m)}\) to contrast it with subsequent estimators. For each sample i, the estimator first partitions alleles into 10 equallyspaced bins based on their minor allele frequency: \((0,\,0.05),\ldots ,\, (0.45,\,0.50)\) . Within each bin, b, the average expected heterozygosity assuming countrylevel HWE is calculated by
where \(M_b\) is the number of SNPs within bin b. The average observed heterozygosity within each bin and each sample is calculated by
Finally, \(\hat{f}_i^{(m)}\) is calculated as \(1\beta\) where \(\beta\) is the slope found by regressing the \(H_o(b,\,i)\) values against \(H^e_{b}\) values centered within their respective allele frequency bins and constrained to pass through the origin. This is the initial estimator.
The binning procedure, while stabilizing the estimator against influence from an excess of low frequency alleles common within samples, may also introduce bias. This effect can be removed by discarding the binning procedure in favour of directly regressing observed heterozygosity for each SNP against the expected value, still constrained to pass through the origin. This provides a closedform expression for the regressed estimator, \(f_i^{(r)}\), as
A similar estimator, more transparently connected to the ideas underpinning traditional Fstatistics, can be found in the following way. For a single SNP j, suppose \(f_i\) to be the fraction of the populationlevel heterozygosity equal to the difference between the populationlevel heterozygosity, \(H_j^p\) and the samplelevel heterozygosity, \(H_j^i\) that is,
Dividing through by \(H_j^p\) gives an estimate for \(f_i\) for the SNP j. Averaging across all SNPs and taking the ratio of expectations to be the expectation of the ratios gives the estimator
This is the direct estimator, since it contains the critical ratio of the mean observed heterozygosity over the mean expected heterozygosity characteristic of Fstatistics.
For each of these estimators, a bootstrap approach is employed to estimate the variance in the estimates for confidence intervals [23, 24]. The bootstrap works by assuming that the empirically observed distribution – here, the allele frequencies – provides a reasonable approximation to the true empirical distribution. By repeatedly subsampling with replacement from the observed distribution and recalculating the estimator at each iteration, a distribution of estimates is built from which confidence intervals can be calculated.
Bayesian model framework
Inbreeding coefficients comparable to the above estimators can also be derived by the Balding—Nichols model, a widely used method for measuring inbreeding in other genetic contexts [25]. This approach also has strong similarities to previous work in the context of P. falciparum [5, 6]. In using this model, several simplifying assumptions are required. SNPs are treated as unlinked (i.e. no linkage disequilibrium) and it is assumed that individual parasites within a sample represent a random sample of the surrounding population. It is further assumed that read counts are sampled identically, independently, and represent an unbiased sample of allele frequency \(p_{ij}\).
Likelihood and priors
The approach for the Bayesian estimator adapts the Balding–Nichols model of allele frequency within inbred subpopulations to the specific context of P. falciparum WGS data [25, 26]. In P. falciparum the relevant subpopulation is the collection of parasites within a clinical sample. For sample i and SNP j, conditional upon an inbreeding coefficient \(f_i\) and a populationlevel allele frequency \(p_j\), the BaldingNichols model gives the allele frequency \(p_{ij}\) as a Beta distribution:
Since the read counts are assumed to be identical and independent, \(p_{ij}\) is drawn from a Beta distribution, and the probability of the data is binomial, the conjugacy of these distributions can be used to eliminate the dependence on the unknown \(p_{ij}\) and give a Betabinomial distribution for the likelihood at a site j and position j:
where \(\text{ B }(\ \cdot \ , \ \cdot )\) is the beta function. Since independence by site and by sample is assumed, the complete likelihood of the data, \(\mathcal {D}\) conditional upon the inbreeding coefficients for all samples within the population, \(\mathbf {f} = (f_1, \cdots , f_N)\) and the allele frequency for all SNPs \(\mathbf {p} = (p_1,\cdots , p_M)\) becomes
The only prior information about the \(f_i\) values suggests that high levels of inbreeding are common but not obligatory in west African populations, and this is quantitatively interpreted as a uniform prior on each \(f_i\) between zero and one. Similarly, a uniform prior distribution is put on each allele frequency, although rare variants were eliminated as part of data cleaning described in the Data preparation subsection above.
Inference
Since the posterior distribution is not known in closed form, standard randomwalk MetropolisHastings Markov chain (MCMC) approach is used to numerically approximate it [27, 28]. The MetropolisHastings algorithm constructs a discretetime Markov chain over the parameter space in such a way that the posterior distribution of the chain is the stationary distribution of the chain. This requires that at a given iteration in the chain, the move from the current parameter state x to new parameter state \(x'\) with probability \(\alpha\) occurs according to
The first ratio is that the posterior probabilities of x and \(x'\), and written as \(\alpha _1\). The second ratio, \(\alpha _2\), gives probability of choosing the current state from the proposed state over the reverse move. Since \(\alpha _1\) constitutes assessment of the likelihood and the prior functions that can be calculated directly from the specifications above, only the calculation for \(\alpha _2\) is shown. Proposed parameters are denoted with an apostrophe.

\(\mathbf {f}\) —randomly select i and propose \(f_i\) from \(\mathcal {B}(\alpha _{c_i},\beta _{c_i})\), leading to \(\alpha _2 = \frac{\mathcal {B}(f_i\alpha _{c_i},\beta _{c_i})}{\mathcal {B}(f_i'\alpha _{c_i},\beta _{c_i})}\).

\(\mathbf {p}\) —randomly select j and then draw the proposed parameter \(p_j\) from the uniform prior, leading to \(\alpha _2 = 1\).

\(\varvec{\alpha },\ \varvec{\beta }\) —for both of these parameters, randomly select individual components and propose new values directly from the prior distribution, leading to \(\alpha _2 = \frac{\exp {(x)}}{\exp {(x')}}\) where x and \(x'\) are the current and proposed state of the relevant component.
The autocorrelation of the logposterior has minimal lag. As a secondary check, the chain was run for all of the chromosomes individually and compared values with the complete data set. Since SNPs are treated as independent, the performance of the model should be unaffected if the model performs similarly across chromosomes. Across all chromosomes performance is nearly identical, with greater than \(95\,\%\) correlation among maximum a posteriori (MAP) estimates.
Implementation
All code was implemented in the R computational environment [29]. The set of scripts implementing each of the estimators, the MCMC algorithm, visualizations, data simulations, and filtered data sets are available at the pacakge website [30]. This repository includes a tutorial and workflow for completing analyses using these approaches. All materials are released under a creative commons license.
Results
Simulations
To compare the qualities of the four estimators, a simulation study was performed under a range of parameter values to capture how estimator performance may vary with the quality of data collected in the field. The number of SNPs, the number of read counts at each SNP, the degree of skew in the allele frequency distribution (\(\beta\), described below), and the amount of inbreeding were examined. For each parameter set, 100 replicate data sets were simulated. The full set of parameters are listed in Table 2. For comparing these results to empirical data, it is important to note that the coverage level is more comparable to the the minimum coverage level, rather than the average coverage level which can vary substantially. This is because, absent other errors, the coverage level determines the statistical properties of the withinsample allele frequency, with the standard error of the estimate scaling inversely with the square root of the minimum coverage.
The simulated data were created by first fixing the inbreeding coefficient f and the allele frequency distribution. The skewness of the underlying allele frequency was parameterized as a Beta distribution with parameters \(\alpha\) and \(\beta\). \(\alpha\) was fixed to one, while \(\beta\) was varied according to the simulation to induce differening degrees of skew. As \(\beta\) increases, the distribution becomes increasingly rightskewed: when \(\beta =1\) then 1 % of alleles have less than a 0.01 frequency while when \(\beta =1000\) more than 99 % of allele have less than a 0.01 frequency. For a fixed \(\beta\) and f, M alleles are then sampled from the Beta distribution with parameters defined by Eq. 7. The read counts were then simulated according to a binomial distirbution with those withinsample allele frequencies.
Figure 1 summarizes the comparison of \(f_i\) point estimates made by the initial, regressed, direct, and Bayesian estimators across the simulated data. All boxplots use Tukey’s design, showing median, interquartile range and whiskers up to 1.5 times the interquartile range. Inferred/simulated values are reported as a measure of performance. Across all parameter values, the estimators performed similarly, with the Bayesian estimate showing the least bias and highest accuracy. The number of SNPs proves the largest determinant of performance, with 50 SNPs sufficient to ensure reasonable performance in most regimes. Very low f values (\(f<0.5\)) correspond to noticeable bias for the frequentist estimators. The initial estimator is largely robust to large skew in the allele frequency distribution, while the other two estimators are slightly biased by it at high levels of mixture. The data was simulated under the Balding–Nichols model as so the Bayesian method has an intrinsic advantage.
Figure 2 shows that the estimator standard deviation was similar for the three frequentist estimators and markedly smaller in the Bayesian case. For each of the parameter regimes in Fig. 1, 100 bootstrap resamplings were performed. The standard deviation is largely diminished with increasing numbers of SNPs, with read counts and beta values playing little role. Note that bias for the frequentist estimators increases with increasing f values.
Comparison in empirical data
Since the underlying BaldingNichols model within the simulations is likely misspecified relative to empircal data, performance was examined for each of the estimators applied to the WGS from 344 Ghanaian samples. The results shown in Fig. 3 show very strong correlation between the three frequentist estimators, with correlation better than 0.95. For the Bayesian estimate, the maximum a posteriori (MAP) estimate is reported. The Bayesian estimator is still highly correlated (>0.9) with the other estimators but is significiantly more variable in its estimates. Highly mixed and highly unmixed samples (\(f\approx 0\) and \(f \approx 1\)) appear to have the most correlation, with moderately mixed samples deviating the most from the other three estimators.
Comparison with COI
As noted in the introduction, two recent efforts have extended MOI to WGS read count data and introduced the concept of COI [7, 8]. Both methods use finite mixture models to model the underlying number of strains in the sample. For comparison here, the model of O’Brien et al. is used, as it allows for more careful inference of the number of underlying strains and is more robust to errors in the read count data. For each of the 344 Ghanaian samples, the maximum a posteriori iteration is taken as the point estimate for the number of strains. Figure 4 graphs the relationship between the inferred number of strains and the Fstatistic (a Spearman correlation of 0.83). While complex mixture models may provide a more penetrating understanding of withinsample variance, Fstatistics appear to capture much of the same information in a single quantity.
Laboratory strain data
The direct and Bayesian estimators were applied to the four clonal laboratory samples. The resulting values were very close to one, with the smallest observed value (0.98), above the standard threshold for clonality (0.95). The standard deviation of these estimates was less than 0.01. Within these samples, a moderate number of SNPs (\(\sim\) 20) exhibited minor allele frequencies greater than 0.05, indicating some sequencing or alignment errors. These results indicate that these methods can reliably infer clonality even in the presence of some poorlybehaved SNPs.
PF3K data set
The PF3K clinical samples outlined in the Data section were grouped by country and used the direct estimator to calculate the inbreeding coefficient for each sample. These values are available on the companion website as a community resource [30]. Figure 5 summarizes the results, showing relatively low \(f_i\) values throughout west Africa, with the noticeable exception of The Gambia. The median values of south and southeast Asian countries exhibit distinctly less mixture (higher \(f_i\) values) than in West Africa. This is consistent with previous reports of highly variable amounts of withinsample mixture across countries [3]. Interestingly, while the median level of mixture mixture varies significantly across countries, highly mixed samples (\(f_i<0.5\)) and unmixed samples (\(f_i>0.95\)) are present everywhere.
These data overlap with two studies noted in the Background, where f values were also calculated using the initial estimator [17, 18]. Using the paperreported values, we find that there is a 0.97 correlation with the samples from Ghana, and 0.96 for those from Guinea and the Gambia, against the direct estimator values found here. The high correlation between these estimates highlights the similar properties of the initial and direct estimators and indicates the strong consistency of these estimates across different data cleaning procedures.
Discussion
This work presents several new approaches to inferring inbreeding coefficients using read counts from WGS, including a frequentist estimator that is significantly simpler and more intuitive than the initial estimator as well as a Bayesian approach that derives from a classical population genetics model. These approaches help connect MOI investigations to a broader set of work within population genetics and conservation ecology that may be helpful in control efforts [31]. This work also demonstrates a strong correlation between these metrics and the results of more complex mixture models for inferring COI [7, 8]. While not intended to supplant these more involved methods for investigating the withinsample mixture, this additional tool can assist researchers in connecting P. falciparum population genetics to a larger literature. To assist other researchers, the implementaton of these methods is also provided as an R package, pfmix, with tutorials and example datasets in an opensource framework at the package site, along with the direct estimates for the PF3K data set[30].
The model underlying the inbreeding coefficient makes a number of assumptions about the structure of the read count data and the biological mixing process that may affect inference. For the read count data, read counts are assumed to be unbiased and the SNPs are unlinked. While short read data can be biased in several ways, previous research indicates that mixture proportions calculated by read count ratios are largely unbiased (for instance, see [3] supporting information). However, P. falciparum exhibits significant linkage disequilibrium on scales significantly larger than the average distance between neighbouring SNPs in the data. This violation is not expected to bias the estimates as this absence of independence occurs (roughly) evenly across the genome. However, inference from a small region of the genome will likely exhibit bias.
A perhaps more troublesome assumption is embedded in the underlying structure of the Fstatistic. An Fstatistic measures the departure of the observed number of heterozygotes relative to those expected under Hardy–Weinberg equilibrium. In the context of mixed P. falciparum infections, the equilibrium assumptions—random mating, no selection, large population size, genetic isolation—are likely each violated at some level. For example, the mixture within a sample may be the result of a small number of founding individuals or be strongly selected by the human immune system. Without a more general approach to understanding the mixing process, anticipating the robustness of these estimates to this sort of misspecification is difficult. However, we do find that the PF3K samples from Cambodia that possess quite significant population structure still exhibit strong correlation between \(f_w\) and the inferred number of strains.
As genomic data enables more elaborate statistical models for mixed infections and a broader understanding of P. falciparum genetic epidemiology, it will still be useful for field researchers to connect their work with population genetics and ecology through simple metrics. These issues are also relevant for researchers in a number of other Plasmodium species and protozoa with similar lifecycles. Inbreeding coefficients, which have a history going back to the beginnings of modern genetics, connect to a number of population genetic quantities such as effective population size and genetic drift [9, 32, 33] and may serve to complement traditional MOI values and newer models to this end. This work meets this need by providing a basis to infer these quantities and a suite of opensource tools for researchers to calculate them.
Abbreviations
 WGS:

wholegenome sequence data
 MOI:

multiplicity of infection
 COI:

complexity of infection
 HWE:

Hardy–Weinberg equilibrium
 SNP:

single nucleotide polymorphism
 PF3K:

Plasmodium falciparum 3000 genomes
References
 1.
Snow RW, Guerra CA, Noor AM, Myint HY, Hay SI. The global distribution of clinical episodes of Plasmodium falciparum malaria. Nature. 2005;434:214–7.
 2.
Tibayrenc M. Genetic epidemiology of parasitic protozoa and other infectious agents: the need for an integrated approach. Int J Parasitol. 1998;28:85–104.
 3.
Manske M, Miotto O, Campino S, Auburn S, AlmagroGarcia J, Maslen G, et al. Analysis of Plasmodium falciparum diversity in natural infections by deep sequencing. Nature. 2012;487:375–9.
 4.
Conway D, Greenwood B, McBride J. The epidemiology of multipleclone Plasmodium falciparum infections in Gambian patients. Parasitology. 1991;103:1–6.
 5.
Hill WG, Babiker HA. Estimation of numbers of malaria clones in blood samples. Proc R Soc Lond B: Biol Sci. 1995;262:249–57.
 6.
Hill WG, Babiker HA, RanfordCartwright LC, Walliker D. Estimation of inbreeding coefficients from genotypic data on multiple alleles, and application to estimation of clonality in malaria parasites. Genet Res. 1995;65:53–61.
 7.
Galinsky K, Valim C, Salmier A, de Thoisy B, Musset L, Legrand E, et al. COIL: a methodology for evaluating malarial complexity of infection using likelihood from single nucleotide polymorphism data. Malar J. 2015;14:4.
 8.
O’Brien JD, Iqbal Z, Wendler J, AmengaEtego L. Inferring strain mixture within clinical Plasmodium falciparum isolates from genomic sequence data. PLoS Computat Biol. 2016;12:e1004824.
 9.
Hedrick PW, Kalinowski ST. Inbreeding depression in conservation biology. Annu Rev Ecol Evol Syst. 2000;1:139–62.
 10.
Weir BS, Cockerham CC. Estimating Fstatistics for the analysis of population structure. Evolution. 1984;1:1358–70.
 11.
Nei M. Fstatistics and analysis of gene diversity in subdivided populations. Ann Hum Genet. 1977;41:225–33.
 12.
Wright S. The interpretation of population structure by Fstatistics with special regard to systems of mating. Evolution. 1965;1:395–420.
 13.
Rousset F. Genetic differentiation and estimation of gene flow from Fstatistics under isolation by distance. Genetics. 1997;145:1219–28.
 14.
Weir BS, Hill W. Estimating Fstatistics. Annu Rev Genet. 2002;36:721–50.
 15.
Hall N, Karras M, Raine JD, Carlton JM, Kooij TW, Berriman M, et al. A comprehensive survey of the Plasmodium life cycle by genomic, transcriptomic, and proteomic analyses. Science. 2005;307:82–6.
 16.
Auburn S, Campino S, Miotto O, Djimde AA, Zongo I, Manske M, et al. Characterization of withinhost Plasmodium falciparum diversity using nextgeneration sequence data. PLoS One. 2012;7:e32891.
 17.
Duffy CW, Assefa SA, Abugri J, Amoako N, OwusuAgyei S, Anyorigiya T, et al. Comparison of genomic signatures of selection on Plasmodium falciparum between different regions of a country with high malaria endemicity. BMC Genomics. 2015;16:1.
 18.
Mobegi VA, Duffy CW, AmambuaNgwa A, Loua KM, Laman E, Nwakanma DC, et al. Genomewide analysis of selection on the malaria parasite Plasmodium falciparum in West African populations of differing infection endemicity. Mol Biol Evol. 2014;31:1490–9.
 19.
Pearson RD, Amato R, Auburn S, Miotto O, AlmagroGarcia J, Amaratunga C, et al. Genomic analysis of local variation and recent evolution in Plasmodium vivax. Nat Genet. 2016;48:959–64.
 20.
Assefa S, Lim C, Preston MD, Duffy CW, Nair MB, Adroub SA, et al. Population genomic structure and adaptation in the zoonotic malaria parasite Plasmodium knowlesi. Proc Nat Acad Sci. 2015;112:13027–32.
 21.
Murray L, Mobegi VA, Duffy CW, Assefa SA, Kwiatkowski DP, Laman E, et al. Microsatellite genotyping and genomewide single nucleotide polymorphismbased indices of Plasmodium falciparum diversity within clinical infections. Malar J. 2016;15:1.
 22.
\(\text{PF3K} \text{ consortium }\). Plasmodium falciparum 3000 genomes resource, release 3; 2015. https://www.malariagen.net/pf3k3.
 23.
Efron B. Technical Report No. 115. Stanford University. 1978;1.
 24.
Efron B, Tibshirani RJ. An introduction to the bootstrap. New York: CRC Press; 1994.
 25.
Balding DJ. Likelihoodbased inference for genetic correlation coefficients. Theor Popul Biol. 2003;63:221–30.
 26.
Balding DJ, Nichols RA. DNA profile match probability calculation: how to allow for population stratification, relatedness, database selection and single bands. Forensic Sci Int. 1994;64:125–40.
 27.
Hastings WK. Monte Carlo sampling methods using Markov chains and their applications. Biometrika. 1970;57:97–109.
 28.
Gelman A, Carlin JB, Stern HS, Dunson DB, Vehtari A, Rubin DB. Bayesian data analysis. New York: CRC Press; 2013.
 29.
R Core Team. R: A language and environment for statistical computing. Vienna; 2014. http://www.Rproject.org/.
 30.
O’Brien JD. pfmix R package; 2016. https://github.com/jacobian1980/pfmix.
 31.
Frankham R. Inbreeding and extinction: a threshold effect. Conserv Biol. 1995;9:792–9.
 32.
Lande R, Barrowclough GF. Effective population size, genetic variation, and their use in population management. Viable Popul Conserv. 1987;13:87–123.
 33.
Nei M, Tajima F. Genetic drift and estimation of effective population size. Genetics. 1981;98:625–40.
Authors’ contributions
JO’B designed and implemented the study and wrote the manuscript. RL provided visualization of the data and model results. LAE collected the data, contributed to the study design, and edited the manuscript. All authors read and approved the final manuscript.
Acknowledgements
The authors are grateful for many helpful discussions with Jason Wendler. This publication uses data from the MalariaGEN Plasmodium falciparum Community Project [22].
Competing interests
The authors declare that they have no competing interests.
Availability of data and materials
All data are publicly available through the PF3K online resource [22]. Additional scripts are available at the R package website, pfmix [30].
Consent for publication
All authors have reviewed the manuscript. No other consent for publication required.
Funding
LAE was funded partially by a University of Oxford Postdoctoral Research Award. JO’B and RL received no specific funding for this work.
Author information
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.
About this article
Received
Accepted
Published
DOI
Keywords
 Inbreeding coefficient
 MOI
 COI
 Fstatistics
 Balding–Nichols model
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate. Please note that comments may be removed without notice if they are flagged by another user or do not comply with our community guidelines.