-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
232 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,42 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
rm -f test .coverage | ||
|
||
if command -v coverage &> /dev/null; then | ||
binary="coverage run -a -m DockQ.DockQ" | ||
else | ||
binary="DockQ" | ||
fi | ||
|
||
# Test that cython version behaves the same as nocython | ||
coverage run -a -m DockQ.DockQ examples/1A2K_r_l_b.model.pdb examples/1A2K_r_l_b.pdb | ||
coverage run -a src/DockQ/DockQ.py examples/1A2K_r_l_b.model.pdb examples/1A2K_r_l_b.pdb | ||
coverage run -a -m DockQ.DockQ examples/1A2K_r_l_b.model.pdb examples/1A2K_r_l_b.pdb --no_align | ||
coverage run -a src/DockQ/DockQ.py examples/1A2K_r_l_b.model.pdb examples/1A2K_r_l_b.pdb --no_align | ||
$binary examples/1A2K_r_l_b.model.pdb examples/1A2K_r_l_b.pdb > test | ||
diff test testdata/1A2K.dockq | ||
python src/DockQ/DockQ.py examples/1A2K_r_l_b.model.pdb examples/1A2K_r_l_b.pdb > test | ||
diff test testdata/1A2K.dockq | ||
$binary examples/1A2K_r_l_b.model.pdb examples/1A2K_r_l_b.pdb --no_align > test | ||
diff test testdata/1A2K.dockq | ||
python src/DockQ/DockQ.py examples/1A2K_r_l_b.model.pdb examples/1A2K_r_l_b.pdb --no_align > test | ||
diff test testdata/1A2K.dockq | ||
|
||
# Multiple interfaces | ||
coverage run -a -m DockQ.DockQ examples/dimer_dimer.model.pdb examples/dimer_dimer.pdb --short | ||
$binary examples/dimer_dimer.model.pdb examples/dimer_dimer.pdb --short > test | ||
diff test testdata/dimer_dimer.dockq | ||
|
||
# Test on structures with slightly different sequences | ||
coverage run -a -m DockQ.DockQ examples/model.pdb examples/native.pdb --allowed_mismatches 1 | ||
$binary examples/model.pdb examples/native.pdb --allowed_mismatches 1 > test | ||
diff test testdata/model.dockq | ||
|
||
# Test various mapping strategies | ||
coverage run -a -m DockQ.DockQ examples/1EXB_r_l_b.model.pdb examples/1EXB_r_l_b.pdb --short --mapping AB*:BA* | ||
coverage run -a -m DockQ.DockQ examples/1EXB_r_l_b.model.pdb examples/1EXB_r_l_b.pdb --short --mapping :ABC | ||
coverage run -a -m DockQ.DockQ examples/1EXB_r_l_b.model.pdb examples/1EXB_r_l_b.pdb --short --mapping ABCDEFGH:BADCFEHG | ||
$binary examples/1EXB_r_l_b.model.pdb examples/1EXB_r_l_b.pdb --short --mapping AB*:BA* > test | ||
diff test testdata/1EXB_AB.BA.dockq | ||
$binary examples/1EXB_r_l_b.model.pdb examples/1EXB_r_l_b.pdb --short --mapping :ABC > test | ||
diff test testdata/1EXB_.ABC.dockq | ||
$binary examples/1EXB_r_l_b.model.pdb examples/1EXB_r_l_b.pdb --short --mapping ABCDEFGH:BADCFEHG > test | ||
diff test testdata/1EXB_ABCDEFGH.BADCFEHG.dockq | ||
|
||
# Test that cif parsing behaves same as pdb parsing | ||
coverage run -a -m DockQ.DockQ examples/1EXB_r_l_b.model.pdb examples/1EXB_r_l_b.pdb --mapping DH:AE | ||
coverage run -a -m DockQ.DockQ examples/1EXB_r_l_b.model.pdb examples/1EXB.cif.gz --mapping DH:AE | ||
$binary examples/1EXB_r_l_b.model.pdb examples/1EXB_r_l_b.pdb --mapping DH:AE > test | ||
diff test testdata/1EXB_DH.AE.dockq | ||
$binary examples/1EXB_r_l_b.model.pdb examples/1EXB.cif.gz --mapping DH:AE > test | ||
diff test testdata/1EXB_DH.AE_cif.dockq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,7 @@ where=src | |
console_scripts = | ||
DockQ = DockQ.__main__:main | ||
|
||
[coverage:run] | ||
include = | ||
*/DockQ/* | ||
|
Oops, something went wrong.