MGHome page

GWAS course

Course map

0 of 64 steps done

Start with step 0.1Install R

Saved in this browser only.

Step 1.2

Module 1 · From DNA to array data · step 2 of 11

1.2How an array measures DNA

Commands tested on Windows

In short

We find the three laboratory report files and read the first 12 lines of the first report. This shows how the laboratory organises information before we read the recorded DNA results.

Do this

You should see: The top of a simulated Final Report: first the header, then the start of the data section.

Command

Module setup, needed before this step

R: module setup

source("R/guided.R")cfg <- guided_init()

R command

Type or paste into the RStudio console.

1reports <- list.files(file.path(cfg$data_dir, "final_report"), full.names = TRUE)stopifnot(length(reports) == 3L)2readLines(reports[1], n = 12L)
  1. Note 1: Find the laboratory reports and check that there are three files.
  2. Note 2: Show the first 12 lines of the first report.

You need

The array annotation from step 1.1. You also need the example final reports supplied at step 0.5. A final report (opens in a new tab) is a text file from the laboratory that lists the genotype calls.

What we do

Learn why a fluorescence measurement is not the same as a genotype call.

Why

A genotyping array (opens in a new tab) is a small chip that measures many sites at once. It measures fluorescent light from DNA that sticks to probes (opens in a new tab). This sticking is called hybridisation. Probes are short DNA sequences that are designed to recognise chosen sites.

The chip reads the light in two colour channels. The signals from many samples tend to form three clusters (opens in a new tab) of points. The clusters stand for the two homozygotes (opens in a new tab) (two equal alleles) and the heterozygote (opens in a new tab) (two different alleles). A calling algorithm then gives each sample a genotype, or leaves the call missing.

The signal strength is a measurement. It is not a count of alleles. Weak separation between clusters, background light and mixed DNA can make a call uncertain.

A bead in a well, with short probe strands attached. One probe is enlarged. It pairs with the sample DNA up to the variant, and a labelled base, glowing green, is added next to the variant.
1. The probe and the labelled base
A scatter plot with the intensity of allele A on the horizontal axis and the intensity of allele B on the vertical axis. Three clouds of points: AA at the lower right, AB in the middle and BB at the upper left. A few grey points near the origin are marked no call.
2. Two intensities become a genotype
PLINK terminal equivalent. Optional: you do not need it for the course.

Not applicable: this step needs no PLINK command. The R chunk is the complete command.

R reads or calculates the displayed values without changing the genotype files.

Expected result

Show the expected result

The top of a simulated Final Report: first the header, then the start of the data section. The supplied reports contain genotype calls and GC scores. They do not contain raw intensity data, so you cannot redraw cluster plots in this exercise.

The tested PLINK version is defined in config.R and recorded in software_versions.txt. Validation: executable chunks passed on Windows with the supplied simulated dataset.

If something goes wrong

If something goes wrong

Stop at the first error. Check the named input and the previous step. Keep the command and console logs; do not substitute files from a different dataset version. See troubleshooting (opens in a new tab).

Quick check

Can a low-quality fluorescence measurement be treated as a confidently observed missing allele?

Show the answer

No. Missing means that no genotype call was accepted. It is not a biological allele.

Files created

None.