-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariant_effect_prediction.sh
More file actions
41 lines (38 loc) · 1.1 KB
/
variant_effect_prediction.sh
File metadata and controls
41 lines (38 loc) · 1.1 KB
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
#!/bin/bash
#SBATCH -t 0-01:0
#SBATCH -p gpu
#SBATCH --gpus-per-task=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --output=logfiles/slurm-%j.out
#SBATCH --mem=100G
mkdir -p logfiles
vcf_filepath="${1:-}" # path to vcf file
outdir="${2:-}" # path to output dir
annotate="${3:-true}" # whether to annotate
visualize="${4:-false}" # whether to visualize results
if [ "$visualize" = "true" ]; then
if [ "$annotate" = "true" ]; then
python variant_effect_prediction.py \
--variant_path $vcf_filepath \
--output_path $outdir \
--annotate \
--visualize
else
python variant_effect_prediction.py \
--variant_path $vcf_filepath \
--output_path $outdir \
--visualize
fi
else
if [ "$annotate" = "true" ]; then
python variant_effect_prediction.py \
--variant_path $vcf_filepath \
--output_path $outdir \
--annotate
else
python variant_effect_prediction.py \
--variant_path $vcf_filepath \
--output_path $outdir
fi
fi