allpy
view lib/monomer.py @ 151:675b402094be
day commit -- a lot of changes
fasta.py:
universal save_fasta()
determine_long_line -- for determine length of fasta sequence string
in user input
everywhere: standart long_line=60 --> 70
blocK.sequences_chains: returns sequences in order as in project
added monomer pdb_secstr to store secondary structure
pdb adding: some improvements and fixes
fix in from_pdb_chain: use all peptides, not only first
Sequence.pdb_files added to store information about pdb file for each chain
dssp bindings to get secondary structure
/sec_str -- tool to map secondary structure on each sequence of alignment
author | boris (netbook) <bnagaev@gmail.com> |
---|---|
date | Tue, 26 Oct 2010 00:40:36 +0400 |
parents | f7dead025719 |
children | ff68a1bef5eb |
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
63 """
84 @staticmethod
88 """ Returns new AminoAcid object of this type """
93 """ Amino acid """
94 pass
97 # prepare all aminoacids