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.
#File Dependencies:
#File Dependencies:
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.
#R Script Execution:
#R Script Execution:
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.
#Data Download:
#Data Download:
The first step downloads the necessary data files (penncath.bed, penncath.bim, penncath.fam) using the src/download_data.R script.
#Data Processing:
#Data Processing:
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).