-
Notifications
You must be signed in to change notification settings - Fork 78
/
install.sh
executable file
·37 lines (33 loc) · 1.36 KB
/
install.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
#!/bin/bash
############################################################################
# Copyright (c) 2022-2024 Helmholtz Institute for Pharmaceutical Research Saarland (HIPS), HZI
# Copyright (c) 2015-2022 Saint Petersburg State University
# Copyright (c) 2011-2015 Saint Petersburg Academic University
# All Rights Reserved
# See file LICENSE for details.
############################################################################
# installs general QUAST pipeline and general MetaQUAST pipeline.
# MetaQUAST for de novo datasets (without references) will NOT be installed.
quast_home=$(dirname "$0")
stdout_log_fname=$quast_home/install_log.stdout
echo "Starting QUAST test... (stdout redirected to $stdout_log_fname)"
echo "" > $stdout_log_fname
echo "Starting QUAST test" >> $stdout_log_fname
$quast_home/quast.py --test >> $stdout_log_fname
return_code=$?
if [ $return_code -ne 0 ]; then
echo 'ERROR! QUAST TEST FAILED!'
exit 1
fi
echo "Starting MetaQUAST test... (stdout redirected to $stdout_log_fname)"
echo "" >> $stdout_log_fname
echo "Starting MetaQUAST test" >> $stdout_log_fname
$quast_home/metaquast.py --test >> $stdout_log_fname
return_code=$?
if [ $return_code -ne 0 ]; then
echo 'ERROR! METAQUAST TEST FAILED!'
exit 1
fi
echo 'QUAST INSTALLED SUCCESSFULLY!'
echo 'You can install full version of QUAST with ./install_full.sh (see manual.html)'
exit 0