-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrunall.sh
executable file
·33 lines (23 loc) · 1.16 KB
/
runall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# WGS data preparation pipeline - main script
# Edit the scripts as needed
# Rename samples if needed
#01_scripts/00_rename_samples.sh
# Trim reads for quality
srun -c 6 -p medium --mem 10G -J wgsTrim -o log_%j 01_scripts/01_fastp.sh
# Align reads to reference
srun -c 4 -p medium --mem 10G -J wgsAlign -o log_%j 01_scripts/02_bwa_mem_align_reads_PE.sh
# Collect duplicat metrics
srun -c 1 -p medium --mem 10G -J wgsMetrics -o log_%j 01_scripts/03_collect_metrics.sh
# Remove duplicates
srun -c 1 -p medium --mem 30G -J wgsDuplicates -o log_%j 01_scripts/04_remove_duplicates.sh
# Index bam files
srun -c 1 -p medium --mem 10G -J wgsIndexBam -o log_%j 01_scripts/05_gatk_index_bam.sh
# Index reference genome
srun -c 1 -p medium --mem 10G -J wgsIndexGenome -o log_%j 01_scripts/06_gatk_dictionnary_reference.sh
# Find regions to re-align
srun -c 1 -p medium --mem 30G -J wgsFindIndels -o log_%j 01_scripts/07_gatk_realign_targets.sh
# Re-align around indels
srun -c 1 -p medium --mem 30G -J wgsRealignIndels -o log_%j 01_scripts/08_gatk_realign_indel.sh
# Remove reads overlap
srun -c 1 -p medium --mem 10G -J wgsClipOverlaps -o log_%j 01_scripts/09_clip_overlap.sh