-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintegrationTest.sh
executable file
·33 lines (24 loc) · 1.57 KB
/
integrationTest.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
#!/bin/bash
#This is a basal integration test. It assumes the user correctly installed the dependencies in INSTALL.md, ran install.sh and env.sh in the current shell. This script will download a set of 75 sequences. All the sequences belong to pacbio barcode 01. A ~40 MB set of raw fast5 files will also be download, since fast5 files are needed for nanopolish.
#poreFUME is fired up, check whether this matches your local settings, such as cores and directory paths.
#Finally, the output (CARD annotation) is compared to the pre-computed CARD annotation (in test/data) and should be similar.
curdir=`pwd`
echo $curdir
if [ ! -f test/data/testSet75.tar.gz ]; then
cd test
cd data
wget http://www.student.dtu.dk/~evand/poreFUME_data/testSet75.tar.gz
tar -zxvf testSet75.tar.gz
fi
if [ ! -f inputData/testSet75.fasta ]; then
cd $curdir
cd inputData
wget http://www.student.dtu.dk/~evand/poreFUME_data/testSet75.fasta
fi
cd $curdir
python poreFUME.py inputData/testSet75.fasta inputData/pb_39.fasta --PacBioLegacyBarcode --cores 8 --pathCARD=inputData/n.fasta.protein.homolog.fasta --pathNanocorrect=$curdir/nanocorrect/ --pathRawreads=$curdir/test/data/testSet75 --overwriteNanocorrect --pathNanopolish=$curdir/nanopolish/ --overwriteNanopolish --overwriteDemux --overwriteCARD
if ! diff -q output/annotation/testSet75/testSet75.afterNP.annotated.csv test/data/testSet75.afterNP.annotated.csv > /dev/null 2>&1; then
echo "Integration test failed, the output in output/annotation/testSet75/testSet75.afterNP.annotated.csv is not what is expected"
else
echo "Integration test passed!"
fi