-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalyze-mrfy.sh
More file actions
executable file
·81 lines (66 loc) · 2.25 KB
/
analyze-mrfy.sh
File metadata and controls
executable file
·81 lines (66 loc) · 2.25 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/env bash
#
# analyze-smurf.sh - run all scripts necessary to generate positive and
# negative controls for analyzing the efficacy of smurf versus hmmer
# Copyright 2010 Jeffrey Finkelstein
#
# This file is part of smurf.
#
# smurf is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 2 of the License, or (at your option) any later
# version.
#
# smurf is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# smurf. If not, see <http://www.gnu.org/licenses/>.
# run this script from the current directory, because the scripts which it
# calls have hardcoded locations
STATUS_ARGS=4
if [ $# -lt 4 ]; then
echo "Usage: $0 <output-dir> <superfamily-sunid> <simev> [skip-matt]"
exit $STATUS_ARGS
fi
OUTPUT_DIR=$1
SUPERFAMILY=$2
SIMEV=$3
SKIPMATT=$4
### vary: beta threshold, simev freq (10, 50), simev threshold (0, same as beta)
# these args go to generate-hmm (freq, simev threshold, simev count)
MRFY=mrfy
# generate the consensus multiple alignment template
if [ -z $SKIPMATT ]; then
./generate-matt-alignments.py -v -r blast7 $OUTPUT_DIR $SUPERFAMILY
if [ $? -ne 0 ]; then
echo "generate-matt-alignments.py exited with status $?"
exit $?
fi
fi
if [ $SIMEV -eq 1 ]; then
./generate-mrf.py -v $OUTPUT_DIR $MRFY -f 0.5 -c 150 -t 0
else
./generate-mrf.py -v $OUTPUT_DIR $MRFY -f 0.0 -c 0 -t 0
fi
if [ $? -ne 0 ]; then
echo "generate-mrf.py exited with status $?"
exit $?
fi
./generate-positive-controls.py -v -r nonident $OUTPUT_DIR $MRFY $SUPERFAMILY
if [ $? -ne 0 ]; then
echo "generate-positive-controls.py exited with status $?"
exit $?
fi
./generate-negative-controls.py -v -r blast7 $OUTPUT_DIR $MRFY $SUPERFAMILY
if [ $? -ne 0 ]; then
echo "generate-negative-controls.py exited with status $?"
exit $?
fi
./generate-csv.py -v $OUTPUT_DIR $MRFY
if [ $? -ne 0 ]; then
echo "generate-csv.py exited with status $?"
exit $?
fi
exit 0