What problem does it solve?
This Skill provides a comprehensive suite of population genetics analysis tools, reimplementing the DnaSP 6 algorithms for analyzing DNA sequences.
Core Features & Use Cases
- Diversity and Neutrality: Calculate nucleotide diversity, haplotype diversity, and neutrality tests (Tajima's D, Fu & Li's D/F, R2).
- Linkage Disequilibrium: Analyze D, D', R², ZnS, Za, ZZ, and LD decay.
- Recombination: Estimate minimum recombination events and detect four-gamete test events.
- Mismatch Distribution: Study mismatch distribution for population size history.
- InDel Polymorphism: Analyze insertion/deletion polymorphism events.
- Divergence: Measure between-population divergence (Dxy, Da, fixed/shared sites).
- Other Features: Fu & Li D/F with outgroup, HKA multi-locus neutrality test, McDonald-Kreitman test, Ka/Ks (dN/dS), Fu's Fs test, site frequency spectrum (SFS), transition/transversion ratio (tstv), codon usage bias (RSCU, ENC), Fay & Wu's H and Zeng's E, Fst, etc.
- Use Case: Suppose you have a set of DNA sequences from two different populations and want to compare their genetic diversity and divergence. This Skill can help you compute various statistics to answer these questions.
Quick Start
To perform a basic polymorphism analysis, use the following command:
python skills/dnasp/dnasp.py --input alignment.fas --output results/