-
Notifications
You must be signed in to change notification settings - Fork 0
/
busco.sh
executable file
·54 lines (36 loc) · 983 Bytes
/
busco.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
53
54
## BUSCO analysis
out=$1
name=$2
busco=$3
data=$4
pwd=$5
threads=$6
RAM=$7
printf "sh FullPipeline/busco.sh $1 $2 $3 $4 $5 $6 $7\n# "
#############################
mkdir -p ${out}/results/AssemblyQC/Busco
echo """
#!/bin/sh
## name of Job
#PBS -N BUSCO_${name}
## Redirect output stream to this file.
#PBS -o ${out}/log/Busco_${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 #######
source /opt/anaconda3/etc/profile.d/conda.sh
conda activate busco_5.2.2
######## run analyses #######
## Go to pwd
cd ${pwd}
cd ${out}/results/AssemblyQC/Busco
busco -i ../../../output/${name}_${data}.fa \
-o ${name} \
-m genome \
-c ${threads} \
-f \
-l ${busco}
""" > ${out}/shell/qsub_busco_${name}.sh
qsub -W block=true ${out}/shell/qsub_busco_${name}.sh