-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_6_prepare_roc.sh
More file actions
executable file
·34 lines (25 loc) · 957 Bytes
/
_6_prepare_roc.sh
File metadata and controls
executable file
·34 lines (25 loc) · 957 Bytes
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/sh
#
# Usage: _6_prepare_roc.sh results.sdf score_field [num_poses]
# If num_poses is specified as the third argument then on that number of poses
# from the input file are used.
set -e
echo Filtering results ...
if [[ $# -eq 3 ]]; then
sdfilter -f"\$_COUNT <= $3" -s_TITLE1 $1 | sdsort -n -s -f$2 | sdfilter -f'$_COUNT == 1' -s_TITLE1 > results_1poseperlig_from$3.sdf
else
sdsort -n -s -f$2 $1 | sdfilter -f'$_COUNT == 1' -s_TITLE1 > results_1poseperlig.sdf
fi
echo Preparing data for ROC ...
if [[ $# -eq 3 ]]; then
sdreport -t$2 results_1poseperlig_from$3.sdf | awk '{print $2,$3}' > results_1poseperlig_from$3.txt
else
sdreport -t$2 results_1poseperlig.sdf | awk '{print $2,$3}' > results_1poseperlig.txt
fi
echo Sorting ...
if [[ $# -eq 3 ]]; then
sdsort -n -f$2 results_1poseperlig_from$3.sdf > results_1poseperlig_from$3_sorted.sdf
else
sdsort -n -f$2 results_1poseperlig.sdf > results_1poseperlig_sorted.sdf
fi
echo Done