-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcoding_variant.sh
More file actions
26 lines (20 loc) · 855 Bytes
/
coding_variant.sh
File metadata and controls
26 lines (20 loc) · 855 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
#!//usr/bin/bash -l
#SBATCH --time=8:00:00
#SBATCH --ntasks=8
#SBATCH --mem=32g
#SBATCH --tmp=32g
#SBATCH --mail-type=ALL
#SBATCH -p small
#SBATCH --mail-user=pmorrell@umn.edu
# A script to identify the proportion of variants that are in coding sequence.
# Written by Peter L. Morrell
# 19 November 2021, Falcon Heights, MN
set -euf
set -o pipefail
module load bedtools_ML/2.28.0
OUTDIR=/panfs/roc/groups/9/morrellp/shared/Projects/Selective_Sweeps/VeP
OUTFILE=code_variants.txt
bedtools intersect -wa -wb \
-a /panfs/roc/groups/9/morrellp/shared/References/Reference_Sequences/Barley/Morex_v2/gene_annotation/Barley_Morex_V2_gene_annotation_PGSB.all.parts.bed \
-b /panfs/roc/groups/9/morrellp/shared/Datasets/Alignments/selective_sweeps_morex_v2/all/Variant_Recalibrator/ssw_vc_snps_final.vcf -names d1 -sorted \
| uniq > ${OUTDIR}/${OUTFILE}