Identification of hidden population structure in time-scaled phylogenies
Population structure influences genealogical patterns, however data pertaining to how populations are structured are often unavailable or not directly observable. Inference of population structure is highly important in molecular epidemiology where pathogen phylogenetics is increasingly used to infer transmission patterns and detect outbreaks. Discrepancies between observed and idealised genealogies, such as those generated by the coalescent process, can be quantified, and where significant differences occur, may reveal the action of natural selection, host population structure, or other demographic and epidemiological heterogeneities. We have developed a fast non-parametric statistical test for detection of cryptic population structure in time-scaled phylogenetic trees. The test is based on contrasting estimated phylogenies with the theoretically expected phylodynamic ordering of common ancestors in two clades within a coalescent framework. These statistical tests have also motivated the development of algorithms which can be used to quickly screen a phylogenetic tree for clades which are likely to share a distinct demographic or epidemiological history. Epidemiological applications include identification of outbreaks in vulnerable host populations or rapid expansion of genotypes with a fitness advantage. To demonstrate the utility of these methods for outbreak detection, we applied the new methods to large phylogenies reconstructed from thousands of HIV-1 partial pol sequences. This revealed the presence of clades which had grown rapidly in the recent past, and was significantly concentrated in young men, suggesting recent and rapid transmission in that group. Furthermore, to demonstrate the utility of these methods for the study of antimicrobial resistance, we applied the new methods to a large phylogeny reconstructed from whole genome Neisseria gonorrhoeae sequences. We find that population structure detected using these methods closely overlaps with the appearance and expansion of mutations conferring antimicrobial resistance. Zenodo record 4988745, published 2020-03-26, 6 file(s) totalling 282.4 MB (3 other, 1 bioseq, 1 document, 1 archive).
- Category
- Metagenomics
- Provider
- Erik Volz and 5 others
- License
- CC0-1.0
- DOI
- 10.5061/dryad.w6m905qkx
- Hosted on
- Zenodo
- Access
- Free and public. No account with the data provider is needed.
- Source
- https://doi.org/10.5061/dryad.w6m905qkx
Data structure and loading code
Files
Example file: https://zenodo.org/api/records/4988745/files/vb2017-genbank.fasta/content
Path pattern: Flat Zenodo record: every file hangs directly off the record, no directory tree.
Load the data
from Bio import SeqIO
import requests
# vb2017-genbank.fasta (4.5 MB) is sequence data, whatever its extension says.
url = "https://zenodo.org/api/records/4988745/files/vb2017-genbank.fasta/content"
path = "vb2017-genbank.fasta"
with requests.get(url, stream=True, timeout=600) as r, open(path, "wb") as fh:
r.raise_for_status()
for chunk in r.iter_content(1 << 22):
fh.write(chunk)
fmt = "fastq" if path.endswith((".fastq", ".fq")) else "fasta"
records = list(SeqIO.parse(path, fmt))
print(len(records), "record(s);", records[0].id if records else "none")Written for a Scigantic notebook, where /mnt/archive is the mounted dataset.
Analyze this dataset without downloading it
On Scigantic, Identification of hidden population structure in time-scaled phylogenies opens in a hosted JupyterLab notebook with the data already mounted, so you can read files where they are stored instead of copying them first. Each notebook includes an AI assistant that can see the mounted files and write and run analysis code. Open the dataset page to launch a notebook, or browse the full catalog.
Related Metagenomics datasets
- Sequence data from viral assembly graph analysis of the SERC virome
- Estimation of the relative abundance of species in artificial mixtures of insects using low-coverage shotgun metagenomics
- MARMICRODB database for taxonomic classification of (marine) metagenomes
- Fermented Foods Microbial Genomes Database
- Dominant nitrogen metabolisms of a tropical monomictic lake identified using genome resolved metatranscriptomics
- Multiple extracellular polymeric substances pathways expressed by Accumulibacter and the flanking community during aerobic granule formation and after influent modification
- Analysis tables for a differential diagnosis of phenotype conflicts in BV-BRC antimicrobial-resistance records: all-taxa laboratory pull, classification outputs and per-record evidence layer
- Virus classification for viral genomic fragments using PhaGCN2