Skip to content

Commit

Permalink
add to allres block
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Sep 10, 2024
1 parent 6066666 commit 0441b56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion prody/atomic/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ def getSequence(self, **kwargs):

if kwargs.get('allres', False):
get = AAMAP.get
seq = ''.join([get(res.getResname(), 'X') for res in self])
if kwargs.get('threeLetter', False):
seq = ' '.join([res.getResname() for res in self])
else:
seq = ''.join([get(res.getResname(), 'X') for res in self])
elif self._seq:
seq = self._seq
else:
Expand Down

0 comments on commit 0441b56

Please sign in to comment.