MGHome page

Module 1 · 11 steps

From DNA to array data

How a genotyping array measures DNA, and which problems are born in the laboratory.

GWAS course

Course map

0 of 64 steps done

Start with step 0.1Install R

Saved in this browser only.

In this module

Before you start
You need the course data from step 0.7. The first code chunk checks the files that this module needs.
Where the module ends
This module has no checkpoint.

The notebook is a Quarto file (.qmd). Open it in RStudio from the project folder.

At a glance

What you will do. You will look at the files that come out of a genotyping laboratory. You will read a table of array sites, a laboratory report and a sample sheet. You will then check the size of the genotype files that the rest of the course uses.

What you will learn.

  • What a SNP, an allele and a genotype are, and how they differ.
  • How a genotyping array turns fluorescent light into a genotype call.
  • What the Global Screening Array measures, and what it cannot measure.
  • Why one row in a laboratory file is not always one person.
  • Which laboratory problems the quality-control steps of later modules will look for.
  • How data sources differ, and what the common file formats contain.
  • Why large projects share different formats for different tasks.

How long it takes. About 90 minutes. Steps 1.8 to 1.11 are reading only. You can pause after 1.7 and return to the format examples later.

Your progress: 0 of 11 steps done

Saved in this browser only. Nothing is sent anywhere.

Steps

  1. 1.1SNPs and genotypesLearn the difference between a DNA site, an allele and a genotype.
  2. 1.2How an array measures DNALearn why a fluorescence measurement is not the same as a genotype call.
  3. 1.3The Global Screening ArrayLearn what the array measures and what it leaves unmeasured.
  4. 1.4From sample to scanned chipFollow the identity of a sample through a plate and a laboratory well.
  5. 1.5Calling genotypesRead the call and score columns, and do not treat the score as certainty.
  6. 1.6Problems born in the laboratoryLink laboratory problems to the quality-control checks of later modules.
  7. 1.7The exportUnderstand how the reports relate to the genotype files used for the analysis.
  8. 1.8Where genetic data come fromReading, about 5 minutes.
  9. 1.9A map of genetic file formatsReading, about 7 minutes.
  10. 1.10The formats you will meet most oftenReading, about 9 minutes.
  11. 1.11How large projects share genetic dataReading, about 3 minutes.

Recap

  • You separated a variant, an allele and a genotype.

  • You saw that the array measures light, and that a calling algorithm turns it into genotypes.

  • The annotation lists 299,523 array entries on chromosomes 1 to 22, X, Y and MT.

  • The laboratory ran 21 plates of 96 wells, which gives 2,016 measurements; 16 wells are technical replicates of the 2,000 simulated people.

  • You checked that the genotype files hold 2,016 samples and 299,523 variants, with no QC applied and no person removed.

  • You compared arrays, sequencing and imputation, then read invented format examples.

  • You saw why large resources share several representations of the same study.

Next: module 2 converts these files to the PLINK 2 format and checks them.