Package bmrblib :: Package assembly_supercategory :: Module entity_v3_1
[hide private]
[frames] | no frames]

Source Code for Module bmrblib.assembly_supercategory.entity_v3_1

  1  ############################################################################# 
  2  #                                                                           # 
  3  # The BMRB library.                                                         # 
  4  #                                                                           # 
  5  # Copyright (C) 2009-2010 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 v3.1 entity saveframe category. 
 24   
 25  See http://www.bmrb.wisc.edu/dictionary/3.1html/SaveFramePage.html#entity. 
 26  """ 
 27   
 28  # relax module imports. 
 29  from bmrblib.assembly_supercategory.entity import EntitySaveframe, Entity, EntityCompIndex 
 30   
 31   
32 -class EntitySaveframe_v3_1(EntitySaveframe):
33 """The v3.1 entity saveframe class.""" 34
35 - def add_tag_categories(self):
36 """Create the v3.1 tag categories.""" 37 38 # The tag category objects. 39 self.tag_categories.append(Entity_v3_1(self)) 40 self.tag_categories.append(EntityCompIndex_v3_1(self))
41 42 43
44 -class Entity_v3_1(Entity):
45 """v3.1 Entity tag category.""" 46
47 - def __init__(self, sf):
48 """Setup the Entity tag category. 49 50 @param sf: The saveframe object. 51 @type sf: saveframe instance 52 """ 53 54 # Initialise the baseclass. 55 super(Entity_v3_1, self).__init__(sf) 56 57 # The category name. 58 self.tag_category_label = 'Entity' 59 60 # Change tag names. 61 self['SfCategory'].tag_name = 'Sf_category' 62 self['SfFramecode'].tag_name = 'Sf_framecode' 63 self['EntityID'].tag_name = 'ID' 64 self['BMRBCode'].tag_name = 'BMRB_code' 65 self['Name'].tag_name = 'Name' 66 self['Type'].tag_name = 'Type' 67 self['PolymerCommonType'].tag_name = 'Polymer_common_type' 68 self['PolymerType'].tag_name = 'Polymer_type' 69 self['PolymerTypeDetails'].tag_name = 'Polymer_type_details' 70 self['PolymerStrandID'].tag_name = 'Polymer_strand_ID' 71 self['PolymerSeqOneLetterCodeCan'].tag_name = 'Polymer_seq_one_letter_code_can' 72 self['PolymerSeqOneLetterCode'].tag_name = 'Polymer_seq_one_letter_code' 73 self['TargetIdentifier'].tag_name = 'Target_identifier' 74 self['PolymerAuthorDefinedSeq'].tag_name = 'Polymer_author_defined_seq' 75 self['PolymerAuthorSeqDetails'].tag_name = 'Polymer_author_seq_details' 76 self['AmbiguousConformationalStates'].tag_name = 'Ambiguous_conformational_states' 77 self['AmbiguousChemCompSites'].tag_name = 'Ambiguous_chem_comp_sites' 78 self['NstdMonomer'].tag_name = 'Nstd_monomer' 79 self['NstdChirality'].tag_name = 'Nstd_chirality' 80 self['NstdLinkage'].tag_name = 'Nstd_linkage' 81 self['NonpolymerCompID'].tag_name = 'Nonpolymer_comp_ID' 82 self['NonpolymerCompLabel'].tag_name = 'Nonpolymer_comp_label' 83 self['NumberOfMonomers'].tag_name = 'Number_of_monomers' 84 self['NumberOfNonpolymerComponents'].tag_name = 'Number_of_nonpolymer_components' 85 self['Paramagnetic'].tag_name = 'Paramagnetic' 86 self['ThiolState'].tag_name = 'Thiol_state' 87 self['SrcMethod'].tag_name = 'Src_method' 88 self['ParentEntityID'].tag_name = 'Parent_entity_ID' 89 self['Fragment'].tag_name = 'Fragment' 90 self['Mutation'].tag_name = 'Mutation' 91 self['ECNumber'].tag_name = 'EC_number' 92 self['CalcIsoelectricPoint'].tag_name = 'Calc_isoelectric_point' 93 self['FormulaWeight'].tag_name = 'Formula_weight' 94 self['FormulaWeightExptl'].tag_name = 'Formula_weight_exptl' 95 self['FormulaWeightExptlMeth'].tag_name = 'Formula_weight_exptl_meth' 96 self['Details'].tag_name = 'Details' 97 self['DBQueryDate'].tag_name = 'DB_query_date' 98 self['DBQueryRevisedLastDate'].tag_name = 'DB_query_revised_last_date'
99 100 101
102 -class EntityCompIndex_v3_1(EntityCompIndex):
103 """v3.1 EntityCompIndex tag category.""" 104
105 - def __init__(self, sf):
106 """Setup the EntityCompIndex_v3_1 tag category. 107 108 @param sf: The saveframe object. 109 @type sf: saveframe instance 110 """ 111 112 # Initialise the baseclass. 113 super(EntityCompIndex_v3_1, self).__init__(sf) 114 115 # The category name. 116 self.tag_category_label = 'Entity_comp_index' 117 118 # Change tag names. 119 self['EntityCompIndexID'].tag_name = 'ID' 120 self['AuthSeqID'].tag_name = 'Auth_seq_ID' 121 self['CompID'].tag_name = 'Comp_ID' 122 self['CompLabel'].tag_name = 'Comp_label' 123 self['EntityID'].tag_name = 'Entity_ID'
124