Share E-Book
Scan to open this page

Scan with your phone to open this page

AuthorÁki Jarl Láruson, Floyd Allan Reed

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

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...
View in text
Excerpt 2
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,...
View in text
Excerpt 3
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...
View in text
Excerpt 4
green”, lwd=2) > text(0.6, 0.2, ”Homozygotes”, col=”green”) > curve(2*x*(1-x), 0, 1, add=TRUE, xlab=”Allele frequencies”, ylab=”Genotype frequencies”, col=”b...
View in text
Excerpt 5
x) x^2))) obs <- 0 for(i in 1:length(genotypes[,current])){ if(genotypes[i, current]!=-1){ if(genotypes[i, current]== OUP CORRECTED PROOF – FINAL, 24/12/2020...
View in text
Excerpt 6
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...
View in text
Excerpt 7
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...
View in text
Excerpt 8
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...
View in text
Tags
AI categories
Programming LanguageDataScience
ISBN: 019882954X
Publisher: OUP Oxford
Publish Year: 2021
Language: English
Pages: 224
File Format: PDF
File Size: 3.3 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…