Newer
Older
This Makefile orchestrates a sequence of R scripts to process data and generate output files. It ensures that each step is executed in the correct order by specifying dependencies between the files.
Each target file is dependent on one or more source files. For example, results/tp4/TP4_asbvg.RData depends on results/tp3/TP3_asbvg.RData.
For each target file, an associated R script is run using Rscript. The scripts are executed in sequence, ensuring that the necessary input files are generated before the next step.
The first step downloads the necessary data files (penncath.bed, penncath.bim, penncath.fam) using the src/download_data.R script.
After the data is downloaded, subsequent R scripts (src/tp1.R, src/tp2.R, src/tp3.R, and src/tp4.R) process the data and produce intermediate and final results (stored in .RData files).