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
|
|