-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathblastn.sh
More file actions
29 lines (21 loc) · 914 Bytes
/
blastn.sh
File metadata and controls
29 lines (21 loc) · 914 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
#!/bin/bash -l
#SBATCH --time=4:00:00
#SBATCH --ntasks=8
#SBATCH --mem=10g
#SBATCH --tmp=10g
#SBATCH --mail-type=ALL
#SBATCH --mail-user=pmorrell@umn.edu
# Written by Peter L. Morrell
# 03 May 2021, Falcon Heights, MN
set -euf - o pipefail
#module load ncbi_blast+/2.8.1
# Added Chaochih's install of BLAST to my .bash_profile
WORK=/panfs/roc/groups/9/morrellp/shared/Software/SNP_Utils/
SNPS=/panfs/roc/groups/9/morrellp/pmorrell/Workshop/Cowpea/SNP_Utils/iSelect_all.fas
GENOME=/panfs/roc/groups/9/morrellp/pmorrell/Workshop/Cowpea/SNP_Utils/Vunguiculata_IT97K-499-35_v1.0.fa
#OUT=/panfs/roc/groups/9/morrellp/pmorrell/Workshop/Cowpea/SNP_Utils/cowpea_snps.xml
OUT=/panfs/roc/groups/9/morrellp/pmorrell/Workshop/Cowpea/SNP_Utils/cowpea_snps.out
# query SNPS and write to XML output
cd "$WORK"
#blastn -db "$GENOME" -query "$SNPS" -outfmt 5 -out "$OUT"
blastn -db "$GENOME" -query "$SNPS" -out "$OUT"