Module 2 · Files and formats · step 8 of 8
2.8Module 2 checkpoint
Commands tested on Windows
In short
We save a complete checked starting point for module 3, with 2,016 samples and 296,510 variants. This saved copy lets us restart the analysis without repeating module 2.
Do this
- Paste in the RStudio ConsoleThe R command in the Command section below
You should see: You get a full 2.8 checkpoint with 2,016 samples and 296,510 variants.
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.
# Course bookkeeping: records the counts for the next step. Do not change.1guided_snapshot(cfg, "2.8", guided_path(cfg, "2.7"), 2016, 296510)check_step("2.8", data_dir = cfg$out, work_dir = cfg$out)- Note 1: Save the full starting point and check its files and counts.
You need
You need the joined files from 2.7.
What we do
We save the first complete set of native files that you can restart from. We record its checked size.
Why
The end of a module is a stable point to return to. A checkpoint is a saved copy of the analysis at one moment. Later filters can be replayed from this full copy, so we do not need to distribute every large file. A checkpoint is not evidence that anyone replicated the result.
PLINK terminal equivalent. Optional: you do not need it for the course.
Not applicable: this step needs no PLINK command. The R code above is the complete command.
R reads the files and shows the values. It does not change the genotype files.
Expected result
Show the expected result
You get a full 2.8 checkpoint with 2,016 samples and 296,510 variants. The working state matches the counts and the SHA-256 (opens in a new tab) checks of its checkpoint. A SHA-256 check compares a short fingerprint of a file, to prove that the file has not changed.
The tested PLINK version is defined in config.R and recorded in
software_versions.txt. Validation: executable chunks and the expected counts passed on Windows.
If something goes wrong
If something goes wrong
Stop at the first error message. Check the input file named in the message. Check that the previous step finished. Keep the command and the console output (the text printed in R). Do not use files from a different version of the dataset. See troubleshooting (opens in a new tab).
Quick check
Which boundary should you use before you replay the early sample QC filters?
Show the answer
Use the completed module 2 checkpoint at 2.8.
Files created
s2-8_state.*, checkpoints/2.8/state.*, checkpoints/index.tsv and step_counts.tsv.