Skip to content

Commit

Permalink
fix src
Browse files Browse the repository at this point in the history
  • Loading branch information
clami66 committed Mar 25, 2024
1 parent 71b0896 commit 4c2a379
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
4 changes: 2 additions & 2 deletions run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ set -euo pipefail

# Test that cython version behaves the same as nocython
coverage run -a --source='DockQ.DockQ' -m DockQ.DockQ examples/1A2K_r_l_b.model.pdb examples/1A2K_r_l_b.pdb
coverage run -a --source=src/ src/DockQ/DockQ.py 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 --source='DockQ.DockQ' -m DockQ.DockQ examples/1A2K_r_l_b.model.pdb examples/1A2K_r_l_b.pdb --no_align
coverage run -a --source=src/ src/DockQ/DockQ.py 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
# Multiple interfaces
coverage run -a --source='DockQ.DockQ' -m DockQ.DockQ examples/dimer_dimer.model.pdb examples/dimer_dimer.pdb --short
# Test on structures with slightly different sequences
Expand Down
18 changes: 0 additions & 18 deletions src/DockQ/DockQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def parse_args():
parser.add_argument(
"--verbose", "-v", default=False, action="store_true", help="talk a lot!"
)

parser.add_argument(
"--use_CA",
"-ca",
Expand All @@ -73,14 +72,6 @@ def parse_args():
metavar="n_cpu",
help="Number of cores to use",
)
parser.add_argument(
"--chunk_size",
default=64,
type=int,
metavar="chunk_size",
help="Size of chunks given to the cores",
)

parser.add_argument(
"--optDockQF1",
default=False,
Expand Down Expand Up @@ -112,15 +103,6 @@ def parse_args():
return parser.parse_args()


def open_file(filename):
if filename.endswith(".gz"):
with gzip.open(filename) as f:
yield f
else:
with open(filename) as f:
yield f


@lru_cache
def get_aligned_residues(chainA, chainB, alignment):
aligned_resA = []
Expand Down

0 comments on commit 4c2a379

Please sign in to comment.