Skip to content

Commit

Permalink
Merge pull request prody#1812 from jamesmkrieger/atomic_numResidues
Browse files Browse the repository at this point in the history
add numResidues to Atomic
  • Loading branch information
jamesmkrieger authored Jan 10, 2024
2 parents d3bdff2 + 84083ea commit 3ebb73b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions prody/atomic/atomic.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,8 @@ def toTEMPyStructure(self):
raise ImportError('TEMPy is needed for this functionality')

return BioPy_Structure(self.toTEMPyAtoms())

def numResidues(self):
"""Returns number of residues."""

return len(set(self._getResindices()))

0 comments on commit 3ebb73b

Please sign in to comment.