Population genetics is an inherently quantitative discipline, yet often focuses upon abstract concepts which can be difficult to conceptualize and appropriately visualize at first glance. This book focuses on applying the hugely popular R software specifically to the field, offering an accessible, step-by-step guide to tackling the challenges of achieving effective data interpretation and summary. The authors adopt an engaging "learning by doing" approach that will enable readers to develop an intuitive understanding of key population genetics concepts through the use of R.
Beginning with the groundwork of installing and using R (including CRAN and the RStudio IDE), the book works through the use of basic commands for data manipulation. An introduction to basic terminology in population genetics follows, clearly explaining how these fundamental assumptions can provide insights and form basic inferences for real populations. The focus then moves onto statistical tests including writing and running algorithms as functions. Subsequent chapters examine genetic variation, adaptation, and natural selection as well as different approaches to population differences. Importantly, the accompanying set of practical exercises demonstrate that implementing all of these concepts via programming can actually help greatly in understanding them, even if they may at first seem insurmountably complex. Finally, this accessible textbook points the way forwards to other key concepts that are important to understanding modern day population genetics research (in particular coalescent theory) and offers the reader useful launching points for further learning.
Population Genetics with R is aimed at students ranging from undergraduate to postgraduate level in the fields of population genetics, ecology, evolutionary biology, conservation genetics, computational biology, and biostatistics.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A hands-on introduction to population genetics that teaches you to think through the math by writing R code, not by memorizing formulas. Best for life-science students and researchers who want an intuitive, practical grasp of allele frequencies, Hardy–Weinberg expectations, and selection.
【Book Arc】
- **Opening (~0%–15%)**: Sets the "learning by doing" philosophy and gets R installed and running via CRAN and RStudio, including working directories and saving.
- **Early (~15%–35%)**: Builds R fundamentals — input and calculations, assigning objects to variables, function arguments, object classes, and matrices (including matrix multiplication and transposes).
- **Early–Middle (~35%–50%)**: Introduces core population genetics vocabulary and allele/genotype frequencies, then simulates genotypes with `sample()` and `for` loops and calculates frequencies from real datasets.
- **Middle (~50%–65%)**: Moves into statistical tests and algorithms — deviations from expectation, extending beyond two alleles, blood-type allele frequencies, and the Expectation Maximization algorithm.
- **Late (~65%–90%)**: Examines genetic variation, adaptation, and natural selection, plus different approaches to measuring population differences (excerpts do not detail these chapters).
- **Ending (~90%–100%)**: Points forward to modern research concepts, especially coalescent theory, and offers launching points for further learning.
【Key Takeaways】
- **Learning by doing beats formula memorization** (Opening): The authors deliberately write "cumbersome" code to expose the underlying mechanisms, then streamline later — so beginners see *why* before *how*.
- **R is the vehicle, not the destination** (Early): Free, cross-platform, and CLI-or-GUI, R lets you simulate and visualize population genetics concepts you could never compute by hand.
- **Alleles are defined broadly as any variant at a locus** (Early–Middle): This includes SNPs, and the book focuses on diploid systems where two alleles yield three genotypes (e.g., CC, CT, TT).
- **Frequency and probability are the same thing** (Middle): If an allele's frequency is p, the probability of drawing it at random is p — the conceptual bridge from data to inference.
- **Floating-point equality is a trap** (Middle): `p^2 == 2*p*(1-p)` returns FALSE due to rounding; use `all.equal()` for near-equality. A practical lesson in computational caution.
- **Simulation makes abstract expectations concrete** (Middle): Using `sample()` and `for` loops to build populations, then plotting observed vs. expected genotype frequencies, turns Hardy–Weinberg into something you can see.
- **Real data grounds the theory** (Middle): Examples like sickle-cell genotypes from 501 Lagos samples and CF allele frequency calculations show how to move from raw counts to allele frequencies and χ²/G-tests.
- **The book ends at the doorway to modern methods** (Ending): Coalescent theory is flagged as essential for contemporary research, with pointers for further study rather than full treatment.
【Reading Tips】
- **Deep-read Chapters 2–4** if you're new to R; the installation, object, and matrix material is foundational and later chapters assume it.
- **Skim the R installation and basic-command sections** if you already code — jump to allele frequency simulation and statistical tests.
- **Type every code example yourself**; the book's value is in the muscle memory of running loops, plotting curves, and debugging rounding errors.
- **Pause at the Expectation Maximization section** — it's the conceptual jump from simple counting to algorithmic inference, and worth extra time.
- **Treat the coalescent chapter as a signpost**, not a tutorial; use its references to plan your next learning step.
【Coverage Limits】
This guide is based on stratified excerpts covering roughly the first half of the book; later chapters on selection, population differences, and coalescent theory are referenced but not detailed in the source material.
Excerpt 1
rs the reader useful launching points for further learning. Population Genetics with R is aimed at students ranging from undergraduate to postgraduate level...
with seq() for now, and create our object. We want to name our object x, and we can do this like so: > x <- seq(10) OUP CORRECTED PROOF – FINAL, 19/12/2020,...
of the parent). So half the individuals in a new generation are expected to inherit the T allele from one of their parents and some of those individuals will...
allele state over generational time in a twenty-locus model. Starting allele frequency (p = 5%) is shown with a solid black line, 1–p is shown with a dashed...
w focused a fair bit on randomchange in allele frequencies. OUP CORRECTED PROOF – FINAL, 24/12/2020, SPi 128 POPULATION GENETICS WITH R a selection coefficie...
hemoglobin S data we saw in Chapter 5, these values deviate quite strongly from Hardy–Weinberg predictions, based on our likelihood ratio test. Given what we...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Population Genetics with R An Introduction for Life Scientists (Áki Jarl Láruson, Floyd Allan Reed)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Population Genetics with R An Introduction for Life Scientists (Áki Jarl Láruson, Floyd Allan Reed)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment