-
Notifications
You must be signed in to change notification settings - Fork 7
/
twist_exome_38_template.sbatch
executable file
·54 lines (46 loc) · 1.56 KB
/
twist_exome_38_template.sbatch
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#! /bin/bash
#SBATCH -A ngi2016001
#SBATCH -J TwistExome_=PROJECT=
#SBATCH -p core
#SBATCH -N 1
#SBATCH -n 4
#SBATCH -t 2-00:00:00
#SBATCH -o "=PROJDIR=/logs/twistexome.%j.out"
#SBATCH -e "=PROJDIR=/logs/twistexome.%j.err"
#SBATCH -D "=PROJDIR="
#SBATCH --mail-user [email protected]
#SBATCH --mail-type TIME_LIMIT_80
PROJDIR="=PROJDIR="
TARGETDIR="${PROJDIR}/../resources/target_files_wes/human_comprehensive_exome"
OUTDIR="${PROJDIR}/results"
VERSIONPATH="/vulpes/ngi/=PATHENV=/=VERSION="
REFTSV="${PROJDIR}/reference_tsv"
SAMPLEFILE="${REFTSV}/=PROJECT=.SarekGermlineAnalysis.tsv"
EXITCODE="${PROJDIR}/twistexome.exit_code"
RUNDEBUG="${PROJDIR}/logs/twistexome.run_parameters"
TARGETPARAM="--target_bed ${TARGETDIR}/Twist_Comprehensive_Exome_Covered_Targets_hg38_100bp_padding.bed"
GENOMESPARAM="--genome GRCh38"
PROFILE="-profile uppmax"
SAREKTAG="=SAREKTAG="
SAREKPATH="$(dirname "$(find "${VERSIONPATH}/sw/sarek" -name "main.nf" -print -quit)")"
date '+%Y-%m-%d %R:%S' |tee "${RUNDEBUG}"
cat "${0}" >> "${RUNDEBUG}"
echo "" > "${EXITCODE}"
source "${VERSIONPATH}/conf/sourceme_upps.sh"
source activate NGI
nextflow run \
"${SAREKPATH}" \
${PROFILE} \
--project ngi2016001 \
-c "${VERSIONPATH}/conf/nextflow_miarka_upps.config" \
-c "${VERSIONPATH}/conf/sarek_upps.config" \
-resume \
--tag "${SAREKTAG}" \
${GENOMESPARAM} \
--input "${SAMPLEFILE}" \
--outdir "${OUTDIR}" \
--tools haplotypecaller,snpeff \
${TARGETPARAM} \
--generate_gvcf
echo "$?" > "${EXITCODE}"
date '+%Y-%m-%d %R:%S' |tee -a "${RUNDEBUG}"