Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/allpy/rev/b187b16c7532
Дата изменения: Unknown
Дата индексирования: Tue Oct 2 00:34:29 2012
Кодировка:
allpy: b187b16c7532

allpy

changeset 1024:b187b16c7532

allpy/structure.py: cosmetic improvements of blocks_to_pymol()'s implementation Wrap a value, returned by block_line(), in parentheses for more safety
author Boris Nagaev <bnagaev@gmail.com>
date Thu, 15 Mar 2012 19:50:25 +0400
parents 4732047ae426
children b5a910f0980f
files allpy/structure.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/allpy/structure.py	Thu Mar 15 19:47:56 2012 +0400
     1.2 +++ b/allpy/structure.py	Thu Mar 15 19:50:25 2012 +0400
     1.3 @@ -518,7 +518,7 @@
     1.4              return "(%(pdb)s and chain %(chain)s)" % \
     1.5                  {'pdb': sequence_to_pdb(s), 'chain': s.pdb_chain.get_id()}
     1.6          def block_line(b, s):
     1.7 -            return '(resi %(resi)s) and name ca and %(seq)s' % \
     1.8 +            return '((resi %(resi)s) and name ca and %(seq)s)' % \
     1.9                  {'resi': ','.join(str(monomer_id(c[s])) for c in b.columns),
    1.10                   'seq': sequence_line(s)}
    1.11          pdbs = set(sequence_to_pdb(s) for s in self.sequences)