-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsc_gatk_7.sh
More file actions
33 lines (22 loc) · 818 Bytes
/
sc_gatk_7.sh
File metadata and controls
33 lines (22 loc) · 818 Bytes
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
#SBATCH --mem=200000
#SBATCH --ntasks=16
#load anaconda and GATK
module load Anaconda3/4.3.1
#preset paths
#please note, each cell must have a distinct .vcf file with a unique name (e.g. snv_filtered.vcf) inside a unique folder, specific of the cell. Hence we create a new unique folder for every input file
inDir=/PATH/TO/results/gatk/gatk_6
outDir=/PATH/TO/results/gatk/gatk_7/$file
mkdir $outDir
refDir=/PATH/TO/data/reference_genome/Homo_sapiens.GRCh38.dna.primary_assembly.fa
#gatk 7 - VariantFiltration
java -jar /PATH/TO/gatk3.8/GenomeAnalysisTK.jar \
-T VariantFiltration \
-V $inDir/$file \
-o $outDir/snv_filtered.vcf \
-R $refDir \
-cluster 3 \
--filterExpression "FS > 30.0" \
--filterName "FS" \
--filterExpression "QD < 2.0" \
--filterName "QD"