allpy
view lib/allpy_pdb.py @ 85:7c30000dd742
wt: add resources files
author | boris <bnagaev@gmail.com> |
---|---|
date | Tue, 19 Oct 2010 17:54:14 +0400 |
parents | |
children | ea3113da42ca |
line source
3 # for pdb-codes
4 re1 = re.compile(r"(^|[^a-z0-9])([0-9][0-9a-z]{3})([^a-z0-9]([0-9a-z ]?)([^a-z0-9]([0-9]{1,3}))?)?($|[^a-z0-9])")
6 # for files
7 re2 = re.compile(r"(^)([^^]+\.(ent|pdb))([^a-zA-Z0-9]([0-9A-Za-z ]?)([^a-zA-Z0-9]([0-9]{1,3}))?)?$")
10 """
11 """
12 @staticmethod
21 """
22 Parse standart ID to pdb_code, chain and model
23 """
25 # it is file
51 #~ class Coordinates(object):
52 """
53 float x, y, z
55 Coordinates(x, y, z) -> Coordinates
56 Coordinates() -> new Coordinates
57 """