-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblobtools.sh
executable file
·68 lines (50 loc) · 1.53 KB
/
blobtools.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
## Summarize with blobtools
out=$1
name=$2
busco=$3
data=$4
pwd=$5
threads=$6
RAM=$7
printf "sh FullPipeline/blobtools.sh $1 $2 $3 $4 $5 $6 $7\n# "
##########################
### and BlobTools
### and BlobTools
mkdir ${out}/results/AssemblyQC/blobtools
echo """
#!/bin/sh
## name of Job
#PBS -N blobtools_${name}
## Redirect output stream to this file.
#PBS -o ${out}/log/blobtools_${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/venv/blobtools-3.0.0/bin/activate
## Go to pwd
cd ${pwd}
mkdir ${out}/results/AssemblyQC/blobtools
## create a genome BlobDir
blobtools add \
--fasta ${out}/output/${name}_${data}.fa \
${out}/results/AssemblyQC/blobtools
## add BLAST results
blobtools add \
--hits ${out}/results/BLAST/blastn_${name}.txt \
--taxdump /media/scratch/NCBI_taxdump/ \
--threads ${threads} \
${out}/results/AssemblyQC/blobtools
## add BUSCO results
blobtools add \
--busco ${out}/results/AssemblyQC/Busco/${name}/run_${busco}/full_table.tsv \
--threads ${threads} \
${out}/results/AssemblyQC/blobtools
## add coverage data
blobtools add \
--cov ${out}/results/mapping/${name}.bam \
--threads ${threads} \
${out}/results/AssemblyQC/blobtools
""" > ${out}/shell/qsub_blobtools_${name}.sh
qsub -W block=true ${out}/shell/qsub_blobtools_${name}.sh