[Paper Review] BPEC: An R Package for Bayesian Phylogeographic and Ecological Clustering
BPEC is an R package that integrates DNA sequences with geographical, environmental, and phenotypic data to infer Bayesian phylogeographic and ecological clustering using a collapsed coalescent model on haplotype trees. It enables reversible jump MCMC sampling to infer an unknown number of clusters (migrations) and provides visualizations, including Google Earth-compatible outputs, with demonstrated application to the Near Eastern brown frog Rana macrocnemis showing evidence of both neutral and selective diversification.
BPEC is an R package for Bayesian Phylogeographic and Ecological Clustering which allows geographical, environmental and phenotypic measurements to be combined with DNA sequences in order to reveal clustered structure resulting from migration events. DNA sequences are modelled using a collapsed version of a simplified coalescent model projected onto haplotype trees, which subsequently give rise to constrained clusterings as migrations occur. Within each cluster, a multivariate Gaussian distribution of the covariates (geographical, environmental, phenotypic) is used. Inference follows tailored Reversible Jump Markov chain Monte Carlo sampling so that the number of clusters (i.e., migrations) does not need to be pre-specified. A number of output plots and visualizations are provided which reflect the posterior distribution of the parameters of interest. BPEC also includes functions that create output files which can be loaded into Google Earth. The package commands are illustrated through an example dataset of the polytypic Near Eastern brown frog Rana macrocnemis analysed using BPEC.
Motivation & Objective
- To address the lack of integrated analytical tools in phylogeography that jointly model genetic, geographic, environmental, and phenotypic data.
- To develop a method that does not require pre-specifying the number of clusters (i.e., migration events), enabling data-driven inference of population structure.
- To provide a flexible, model-based framework that combines coalescent theory with multivariate Gaussian models for covariates, supporting inference across spatial and temporal dimensions.
- To enhance interpretability through tailored visualization tools, including Google Earth-compatible output files for spatial exploration of posterior results.
Proposed method
- The method models DNA sequences using a collapsed version of a simplified coalescent model projected onto haplotype trees, which constrains clusterings based on migration events.
- Within each inferred cluster, a multivariate Gaussian distribution models the joint distribution of geographical, environmental, and phenotypic covariates.
- Reversible Jump Markov Chain Monte Carlo (RJ-MCMC) sampling is employed to explore model space and infer the number of clusters without prior specification.
- The approach uses a latent auxiliary tree parameter to represent the genealogical relationships among haplotypes, which informs cluster structure and migration history.
- Posterior inference is performed over cluster assignments, migration events, and parameter estimates, with full uncertainty quantification.
- The package includes functions to generate output files compatible with Google Earth, enabling spatial visualization of posterior cluster distributions and migration patterns.
Experimental results
Research questions
- RQ1How can genetic, geographic, environmental, and phenotypic data be jointly modeled to infer phylogeographic structure without pre-specifying the number of clusters?
- RQ2What role do migration events play in shaping the geographic and genetic structuring of populations, as inferred from sequence and covariate data?
- RQ3To what extent can Bayesian clustering with a coalescent framework detect both neutral and selective processes driving diversification in a single species?
- RQ4How can uncertainty in cluster membership, migration events, and parameter estimates be quantified and visualized effectively for biological interpretation?
- RQ5Can the integration of multivariate covariates (e.g., temperature, elevation, morphology) improve the detection of ecologically meaningful population clusters?
Key findings
- BPEC successfully identified geographic clusters of mtDNA sequence variation in the Near Eastern brown frog Rana macrocnemis that are associated with distinct environmental conditions, suggesting potential divergent selection.
- The analysis revealed evidence of both neutral evolutionary processes and selective pressures contributing to genetic divergence, indicating a complex diversification history.
- The package’s RJ-MCMC algorithm effectively explored model space without requiring the number of clusters to be pre-specified, supporting robust inference of migration events.
- Posterior visualizations, including Google Earth-compatible outputs, enabled clear spatial interpretation of cluster distributions and migration patterns.
- The method demonstrated utility in reducing model space for subsequent hypothesis testing, particularly in identifying biologically plausible population structure from complex data.
- The authors caution that inferences from single-locus data should not be extrapolated to broad biological conclusions, and recommend integrating multi-locus data in future extensions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.