Attribute: linking
String distinguishing the pattern of linkEnds (substitution pattern) of the ChemCompVar. For a linear polymer type ChemComp linking must be 'start', 'middle', 'end', or 'none', and other linking patterns are taken care of by the descriptor attribute. For Other ChemComps linking distinguishes all possible substitution patterns. Here the format is 'link:' followed by a comma-separated list of the linkCodes for the active links. E.g. 'link:SG,C1_2'
guid:
|
www.ccpn.ac.uk_Fogh_2006-08-16-18:23:23_00028
|
Model Type:
|
ChemCompLinking
|
Implementation Type:
|
String
|
Multiplicity:
|
1..1
|
Changeability:
|
frozen
|
isDerived:
|
False
|
isAutomatic:
|
False
|
isImplementation:
|
False
|
isImplicit:
|
False
|
isAbstract:
|
False
|
Scope:
|
instance_level
|
Default Value:
|
None
|
Constraint name:
|
linking_format_rule
|
python code
|
isValid = True
if value not in ('start', 'middle', 'end', 'none'):
if value.startswith('link:'):
chemComp = self.chemComp
for lc in value[5:].split(','):
if chemComp.findFirstLinkEnd(linkCode=lc) is None:
print ("Malformed linking %s: 'link:' %s is not a known linkCode" % (value,lc))
isValid = False
break
else:
isValid = False
print "Malformed linking %s - does not start with 'link:'" % value
|
|