A Snakemake workflow to perform genome-wide association studies. Based on the workflow at https://github.com/Ax-Sch/asso_smk_smpl/tree/main.
- config.yaml file to set workflow parameters
- Snakefile
-
- environments for each rule
-
- R scripts
- VCF file: one file for each chromosome or one file for the whole genome chr{contig}.merged.annotated.vcf.gz
- Sample sheet: a tsv file containing sample ID, covariates and phenotypes. The sample ID column should be called "sample"
- Pedigree file: pop{popul}_pedigree.fam in PLINK .fam file format
- Directory for the input files
- Populations
- Sample sheet filename
- Phenotype and covariate columns in the sample sheet
- Number of PCs to use
- Contigs
Run the command below and save the .sif file in a folder called image
singularity build gwas_workflow.sif gwas.def
Running the workflow requires Snakemake version 7
snakemake --jobs 10 --use-singularity