-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path31_blast_windows.slurm
35 lines (26 loc) · 1.22 KB
/
31_blast_windows.slurm
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
#!/usr/bin/env bash
#SBATCH --cpus-per-task=10
#SBATCH --mem-per-cpu=4G
#SBATCH --time=02:00:00
#SBATCH --job-name=blast_windows
#SBATCH --mail-user=michael.berger1@students.unibe.ch
#SBATCH --mail-type=begin,end
#SBATCH --output=/data/users/mberger/assembly_course/annotations/transposable_elements/manual_annotation/windows_%j.o
#SBATCH --error=/data/users/mberger/assembly_course/annotations/transposable_elements/manual_annotation/windows_%j.e
#SBATCH --partition=pcourseassembly
#load module
module load Blast/ncbi-blast/2.9.0+
#set directories
dir=/data/users/mberger/assembly_course/annotations/transposable_elements/manual_annotation
#change directory and make blast_db directory
cd ${dir}/flye
mkdir blast_db
makeblastdb -in contig_windows.fasta -dbtype nucl -out blast_db/contig_windows
blastn -query contig_windows.fasta -db blast_db/contig_windows -num_threads 10 -outfmt 6 -perc_identity 80 \
-max_hsps 1 > contig_windows.blastn
#change directory and make blast_db directory
cd ${dir}/canu
mkdir blast_db
makeblastdb -in contig_windows.fasta -dbtype nucl -out blast_db/contig_windows
blastn -query contig_windows.fasta -db blast_db/contig_windows -num_threads 10 -outfmt 6 -perc_identity 80 \
-max_hsps 1 > contig_windows.blastn