-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblast.sh
executable file
·52 lines (36 loc) · 1.02 KB
/
blast.sh
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
49
50
51
52
### and Blast
out=$1
name=$2
data=$3
pwd=$4
threads=$5
RAM=$6
printf "sh FullPipeline/blast.sh $1 $2 $3 $4 $5 $6\n# "
#############################
mkdir ${out}/results/BLAST
echo """
#!/bin/sh
## name of Job
#PBS -N BLASTN_${name}
## Redirect output stream to this file.
#PBS -o ${out}/log/BLAST_${name}_log.txt
## Stream Standard Output AND Standard Error to outputfile (see above)
#PBS -j oe
## Select ${threads} cores and ${RAM}gb of RAM
#PBS -l select=1:ncpus=${threads}:mem=${RAM}g
######## load dependencies #######
module load Alignment/ncbi-BLAST-2.12.0
######## run analyses #######
## Go to pwd
cd ${pwd}
blastn \
-num_threads ${threads} \
-outfmt \"6 qseqid staxids bitscore std\" \
-max_target_seqs 10 \
-max_hsps 1 \
-evalue 1e-25 \
-db /media/scratch/NCBI_nt_DB_210714/nt \
-query ${out}/output/${name}_${data}.fa \
> ${out}/results/BLAST/blastn_${name}.txt
""" >${out}/shell/qsub_blastn_${name}.sh
qsub -W block=true ${out}/shell/qsub_blastn_${name}.sh