Skip to content

Commit

Permalink
prec: Improve test for structures with unmodelled residues
Browse files Browse the repository at this point in the history
  • Loading branch information
avivrosenberg committed Jun 2, 2024
1 parent 3250817 commit f3576d2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_prec.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,14 @@ def test_unmodelled_residues(self, pdb_id):
aa_seq_no_ligands = prec.aa_seq.replace(UNKNOWN_AA, "")
assert aa_seq_no_ligands == canonical_seq

# Make sure UNP alignment is correct and includes both modelled and
# unmodelled residues
unp_seq = prec.unp_rec.sequence
assert not all(r.unp_idx is None for r in prec)
assert all(
[unp_seq[r.unp_idx] == r.name for r in prec if r.unp_idx is not None]
)


class TestFromUnp:
def test_from_unp_default_selector(self):
Expand Down

0 comments on commit f3576d2

Please sign in to comment.