allpy
view lib/monomer.py @ 152:ff68a1bef5eb
idea to prevent lack of memory
author | boris (netbook) <bnagaev@gmail.com> |
---|---|
date | Tue, 26 Oct 2010 13:32:19 +0400 |
parents | 675b402094be |
children | 0c7f6117481b |
line source
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
13 """ Monomer type
15 name -- string like "Valine"
16 code1 -- one-letter code (in upper case)
17 code3 -- three-letter code (in upper case)
18 is_modified -- True of False
19 """
29 @staticmethod
32 @staticmethod
36 @staticmethod
40 # TO DISCUSS
49 """ Monomer
51 type -- link to MonomerType object
52 pdb_residues -- dictionary like {Bio.PDB.Chain: Bio.PDB.Residue}
53 pdb_secstr -- dictionary like {Bio.PDB.Chain: 'Secondary structure'}
54 Code Secondary structure
55 H ??-helix
56 B Isolated ??-bridge residue
57 E Strand
58 G 3-10 helix
59 I ??-helix
60 T Turn
61 S Bend
62 - Other
64 Idea: move pdb_residues and pdb_secstr to Sequence object
65 """
86 @staticmethod
90 """ Returns new AminoAcid object of this type """
95 """ Amino acid """
96 pass
99 # prepare all aminoacids