File: preprocessing.sh

package info (click to toggle)
spades 3.13.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 22,172 kB
  • sloc: cpp: 136,213; ansic: 48,218; python: 16,809; perl: 4,252; sh: 2,115; java: 890; makefile: 507; pascal: 348; xml: 303
file content (30 lines) | stat: -rwxr-xr-x 694 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

############################################################################
# Copyright (c) 2015 Saint Petersburg State University
# Copyright (c) 2011-2014 Saint Petersburg Academic University
# All Rights Reserved
# See file LICENSE for details.
############################################################################


if [ -z "$1" ]
then
	echo Usage: $0 database.fasta
	echo Example: $0 SSURef_108_NR_tax_silva_v2.fasta
	exit
fi


tempfile=`basename $1`.tmp
indxfile=`basename $1`

echo Building taxonomy index for $1 ...
echo Temporary file: $tempfile
echo Index prefix: $indxfile

python3 preprocessing.py < $1 > $tempfile

bowtie-build $tempfile $indxfile

rm $tempfile