Data Model version 2.1.2

Method: getMolType


    Getter for derived attribute molType. Possible return values are 'protein', 'DNA', 'RNA', 'carbohydrate', or 'DNA/RNA'

guid: www.ccpn.ac.uk_Fogh_2006-08-16-18:23:34_00034
OpType: get
OpSubType: None
isQuery: True
isAbstract: False
Scope: instance_level
Code: aset = set(x.chemComp for x in self.molResidues)
aset = set(x.molType for x in aset)
if len(aset) == 1:
  result = aset.pop()
elif aset == set(('DNA', 'RNA')):
  result = 'DNA/RNA'
else:
  result = None
  Data Model Version 2.1.2
Go to Top  
  Autogenerated by  PyApiDocGen  revision 1.3   on  Mon Mar 2 17:24:39 2015    from data model package  ccp.api.molecule.Molecule.Molecule   revision ?  
  Work done by the CCPN team.
www.ccpn.ac.uk