allpy
view lib/allpy_pdb.py @ 104:7a87d55efc17
lib: renamed monomer_type to either type or monomer_kind where appropriate
author | Daniil Alexeyevsky <me.dendik@gmail.com> |
---|---|
date | Thu, 21 Oct 2010 15:22:36 +0400 |
parents | 65c3e3aad2e4 |
children | 32b9f4fadd35 |
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
23 """
24 Parse standart ID to pdb_code, chain and model
25 """
27 # it is file
53 #~ class Coordinates(object):
54 """
55 float x, y, z
57 Coordinates(x, y, z) -> Coordinates
58 Coordinates() -> new Coordinates
59 """