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

allpy

changeset 516:9089a005199e

structure: fix regular expression for pdb_id_parse model specifying should not be required to specify chain
author boris (kodomo) <bnagaev@gmail.com>
date Thu, 24 Feb 2011 11:26:47 +0300
parents f98cc0c91e06
children c755fb38896c
files allpy/structure.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/allpy/structure.py	Wed Feb 23 23:10:47 2011 +0300
     1.2 +++ b/allpy/structure.py	Thu Feb 24 11:26:47 2011 +0300
     1.3 @@ -25,7 +25,7 @@
     1.4  
     1.5  
     1.6  # for pdb-codes
     1.7 -re1 = re.compile(r"(^|[^a-z0-9])(?P<code>[0-9][0-9a-z]{3})([^a-z0-9](?P<chain>[0-9a-z ]?)[^a-z0-9](?P<model>([0-9]{1,3}))?)?", re.I)
     1.8 +re1 = re.compile(r"(^|[^a-z0-9])(?P<code>[0-9][0-9a-z]{3})([^a-z0-9](?P<chain>[0-9a-z ]?)([^a-z0-9](?P<model>[0-9]{1,3}))?)?", re.I)
     1.9  
    1.10  def pdb_id_parse(ID):
    1.11      match = re1.search(ID)