-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVeP_template.sh
More file actions
48 lines (40 loc) · 1.48 KB
/
VeP_template.sh
File metadata and controls
48 lines (40 loc) · 1.48 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
42
43
44
45
46
47
48
#!/bin/bash -l
#SBATCH --time=12:00:00
#SBATCH --ntasks=5
#SBATCH --mem=16g
#SBATCH --tmp=16g
#SBATCH --mail-type=ALL
#SBATCH --mail-user=pmorrell@umn.edu
#SBATCH -o %j.out
#SBATCH -e %j.err
# This script runs Variant effect Predictor (VeP) on a set of variants
# It requires a VCF, GFF, and fasta file as input
#Dependencies
module load htslib/1.16-gcc-8.2.0-x236tnl
module load perl/modules.centos7.5.26.1
VEP="/panfs/jay/groups/9/morrellp/shared/Software/ensembl-vep-release-108.1/vep"
# Variant sets should be either 'all', deletions', 'insertions', 'snps', 'common', or 'rare'
VARIANT_SET=all
SPECIES=barley
# Add path to .vcf file
VCF="/scratch.global/pmorrell/Inversions/WBDC355_10X_SNPS/test/filtered_results/WBDC355_10X_chr1H.filtered.vcf.gz"
# Add path to .gff file
GFF="/panfs/jay/groups/9/morrellp/shared/References/Reference_Sequences/Barley/Morex_v3/gene_annotation/Hv_Morex.pgsb.Jul2020.sorted.gff3"
# Add path to reference fasta
FASTA="/panfs/jay/groups/9/morrellp/shared/References/Reference_Sequences/Barley/Morex_v3/Barley_MorexV3_pseudomolecules.fasta"
OUTPUT_PREFIX="${VCF%.vcf.gz}"
# Specify out directory
OUT="/scratch.global/pmorrell/Inversions/WBDC355_10X_SNPS/
cd "${OUT}"
"${VEP}" \
-i "${VCF}" \
--gff "${GFF}" \
--fasta "${FASTA}" \
--species "${SPECIES}" \
--total_length \
--check_svs \
--verbose \
--format vcf \
--force \
--warning_file "${OUTPUT_PREFIX}_${VARIANT_SET}_warnings.txt" \
-o "${OUTPUT_PREFIX}_${VARIANT_SET}.txt"