From 0441b564eb6737fed818b27fdf131f83aa25c228 Mon Sep 17 00:00:00 2001 From: James Krieger Date: Tue, 10 Sep 2024 10:46:33 +0200 Subject: [PATCH] add to allres block --- prody/atomic/chain.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prody/atomic/chain.py b/prody/atomic/chain.py index ea5f73518..0b0b17094 100644 --- a/prody/atomic/chain.py +++ b/prody/atomic/chain.py @@ -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: