allpy
diff lib/project.py @ 153:0c7f6117481b
idea implemented: pdb and sec_str data moved from monomer to sequence
author | boris <bnagaev@gmail.com> |
---|---|
date | Tue, 26 Oct 2010 21:53:23 +0400 |
parents | 675b402094be |
children | be4834043074 |
line diff
1.1 --- a/lib/project.py Tue Oct 26 13:32:19 2010 +0400 1.2 +++ b/lib/project.py Tue Oct 26 21:53:23 2010 +0400 1.3 @@ -245,7 +245,7 @@ 1.4 def secstr(self, secuence, pdb_chain, gap='-'): 1.5 """ Returns string representing secondary structure """ 1.6 return ''.join([ 1.7 - (m.pdb_secstr[pdb_chain] if m and pdb_chain in m.pdb_secstr else gap) 1.8 + (secuence.pdb_secstr[pdb_chain][m] if secuence.pdb_has(pdb_chain, m) else gap) 1.9 for m in self.alignment[secuence]]) 1.10 1.11 def save_secstr(self, out_file, secuence, pdb_chain,