MGHome page

GWAS course

Course map

0 of 64 steps done

Start with step 0.1Install R

Saved in this browser only.

Step 0.7

Module 0 · Prepare your computer · step 7 of 8

0.7Request the password and download the data

In short

University of Pisa users request the password through the data access form with an email address at unipi.it or one of its subdomains. Other users write to manuel.gentiluomo@unipi.it. We then download and check the course data, entering the password only in the prompt that hides the letters, never in a file.

Do this

You should see: Course data are ready: 108 files verified.

Command

R command

Type or paste into the RStudio console.

1download_course_data()
  1. Note 1: Download the course data and check that the files are complete and unchanged.

You need

The complete project folder, R and an internet connection. The command below downloads course-data-2026.1.zip and its small manifest file, MANIFEST.tsv, for you.

Request the password with your university email through the data access form. In class, you can scan the QR code to open the same form. The form accepts University of Pisa email addresses at unipi.it and all its subdomains. Examples include studenti.unipi.it, phd.unipi.it and biologia.unipi.it. It sends the password automatically to these addresses. Other users should write to manuel.gentiluomo@unipi.it. The password changes every academic year. Do not share it. It never appears in the repository or on the site.

The packages from step 0.5 and the executable from step 0.6. Keep the project from step 0.4 open.

What we do

Request the course password, then download the matching encrypted data with download_course_data(). The data are published in GitHub Release data-2026.1 (opens in a new tab). The download URLs and SHA-256 checksums are set in config.R. The package contains 108 files.

Why

The source project contains code and text. The encrypted package contains the data. A checksum (opens in a new tab) is a short code calculated from a file. If the file changes, the code changes. Checksums detect changed or damaged downloads. The password decrypts the archive. A correct password does not replace the checksum check.

Illustration in preparation

Alt text: Empty masked course password prompt opened from RStudio on Windows.

Illustration in preparation

Alt text: Empty masked course password prompt opened from RStudio on macOS.

Illustration in preparation

Alt text: RStudio Console on Windows showing an incomplete-data error and its backup recovery command.

Illustration in preparation

Alt text: RStudio Console on macOS showing an incomplete-data error and its backup recovery command.

Expected result

Show the expected result

On the first successful run, R prints Course data are ready: 108 files verified. On a later run with verified data, it prints Course data are already ready: 108 files verified. Nothing to do. It does not download or ask for the password again. The data are in the folder data/course/. The archive and its small manifest file (a list of the files inside) must both match their configured SHA-256 values. R also checks every extracted data file.

If something goes wrong

If something goes wrong

If the download fails, check your internet connection. As a local fallback, open the release page linked above. Save course-data-2026.1.zip and MANIFEST.tsv together in one folder. Then run:

download_course_data(zip_path = file.choose())

A file selection window opens. Choose the published ZIP file. Do not choose the manifest or the project ZIP. The helper checks the same SHA-256 values.

If the data folder exists but cannot be verified, R reports what it found. This includes a missing manifest, missing files or changed files. For the standard folder, run the exact recovery command:

download_course_data(overwrite = TRUE)

The helper verifies a fresh copy first. It then moves the old folder and its manifest to a dated backup before replacing them. It prints the backup path. It never silently deletes the old data. Use that backup if you need earlier work.

Older installations did not keep the verification manifest. They need this backup and reinstall once. Later runs verify the saved manifest and all data files without a download or a password prompt.

If R says that the release is not configured, download the current course project again. If the password is wrong, check your typing and contact the instructor if needed. Never bypass a checksum failure. See troubleshooting (opens in a new tab).

Quick check

If the checksum differs but the password is accepted, should you use that download?

Show the answer

No. Obtain the approved matching package before continuing.

Files created

Verified data in data/course/ and the verification manifest at data/course.MANIFEST.tsv. The manifest stays beside the folder, so the package still contains 108 files. R removes temporary download and extraction files. Data, manifests and passwords are never added to Git.