Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added with reorder example
  • Loading branch information
charnley committed Nov 24, 2024
commit cbd7ec9be867278978c211f6da704aa883d3a064
2 changes: 1 addition & 1 deletion tests/test_pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_pdb_only_carbon_possible() -> None:
cmd = f"{filename_a} {filename_b}"
_ = rmsdlib.main(cmd.split())

cmd = f"--reorder --only-alpha-carbons {filename_a} {filename_b}"
cmd = f"--reorder --reorder-method qml --only-alpha-carbons {filename_a} {filename_b}"
out = rmsdlib.main(cmd.split())

print(out)
Expand Down
13 changes: 13 additions & 0 deletions tests/test_reorder_qml.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,16 @@ def test_reorder_qml_distmat() -> None:

# Assert this is the same molecule
pytest.approx(0.0) == _rmsd


def test_pdb_only_carbon_possible() -> None:

filename_a = RESOURCE_PATH / "issue98" / "test1.pdb"
filename_b = RESOURCE_PATH / "issue98" / "test2.pdb"

cmd = f"--reorder --reorder-method qml --only-alpha-carbons {filename_a} {filename_b}"
out = rmsdlib.main(cmd.split())

print(out)
rmsd = float(out)
assert isinstance(rmsd, float)