| Trees | Indices | Help | 
 | 
|---|
|  | 
 1  ############################################################################# 
 2  #                                                                           # 
 3  # The BMRB library.                                                         # 
 4  #                                                                           # 
 5  # Copyright (C) 2009-2013 Edward d'Auvergne                                 # 
 6  #                                                                           # 
 7  # This program is free software: you can redistribute it and/or modify      # 
 8  # it under the terms of the GNU General Public License as published by      # 
 9  # the Free Software Foundation, either version 3 of the License, or         # 
10  # (at your option) any later version.                                       # 
11  #                                                                           # 
12  # This program is distributed in the hope that it will be useful,           # 
13  # but WITHOUT ANY WARRANTY; without even the implied warranty of            # 
14  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             # 
15  # GNU General Public License for more details.                              # 
16  #                                                                           # 
17  # You should have received a copy of the GNU General Public License         # 
18  # along with this program.  If not, see <http://www.gnu.org/licenses/>.     # 
19  #                                                                           # 
20  ############################################################################# 
21   
22  # Module docstring. 
23  """The v2.1 entity saveframe category. 
24   
25  This file is part of the U{BMRB library<https://sourceforge.net/projects/bmrblib>}. 
26   
27  See http://www.bmrb.wisc.edu/dictionary/htmldocs/nmr_star/dictionary_files/complete_form_v21.txt. 
28  """ 
29   
30  # relax module imports. 
31  from bmrblib.assembly_supercategory.entity import EntitySaveframe, Entity, EntityCompIndex 
32   
33   
35      """The v2.1 entity saveframe class.""" 
36   
37      # Class variables. 
38      sf_label = 'monomeric_polymer' 
39   
41          """Create the v2.1 tag categories.""" 
42   
43          # The tag category objects. 
44          self.tag_categories.append(Entity_v2_1(self)) 
45          self.tag_categories.append(EntityCompIndex_v2_1(self)) 
46   
47   
48   
50      """v2.1 Entity tag category.""" 
51   
53          """Setup the Entity tag category. 
54   
55          @param sf:  The saveframe object. 
56          @type sf:   saveframe instance 
57          """ 
58   
59          # Initialise the baseclass. 
60          super(Entity_v2_1, self).__init__(sf) 
61   
62          # Change tag names. 
63          self['SfCategory'].tag_name =               'Saveframe_category' 
64          self['Name'].tag_name =                     'Name_common' 
65          self['Type'].tag_name =                     'Mol_type' 
66          self['PolymerType'].tag_name =              'Mol_polymer_class' 
67          self['ThiolState'].tag_name =               'Mol_thiol_state' 
68          self['PolymerSeqOneLetterCode'].tag_name =  'Mol_residue_sequence' 
69          self['FormulaWeight'].tag_name =            'Molecular_mass' 
70          self['DBQueryDate'].tag_name =              'Sequence_homology_query_date' 
71          self['DBQueryRevisedLastDate'].tag_name =   'Sequence_homology_query_revised_last_date' 
72   
73   
74   
76      """v2.1 EntityCompIndex tag category.""" 
77   
79          """Setup the EntityCompIndex_v2_1 tag category. 
80   
81          @param sf:  The saveframe object. 
82          @type sf:   saveframe instance 
83          """ 
84   
85          # Initialise the baseclass. 
86          super(EntityCompIndex_v2_1, self).__init__(sf) 
87   
88          # Change tag names. 
89          self['EntityCompIndexID'].tag_name =    'Residue_seq_code' 
90          self['CompID'].tag_name =               'Residue_label' 
91   
| Trees | Indices | Help | 
 | 
|---|
| Generated by Epydoc 3.0.1 on Fri Oct 28 15:38:31 2016 | http://epydoc.sourceforge.net |