Data Model version 2.0.6

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

Methods

Method Return Parameters Comment
getLinking ChemCompLinking -
setLinking - ChemCompLinking
  Data Model Version 2.0.6
Go to Top  
  Autogenerated by  PyApiDocGen  revision 1.3   on  Wed Aug 7 15:06:23 2013    from data model package  ccp.api.molecule.ChemComp.ChemCompVar   revision 1.64  
  Work done by the CCPN team.
www.ccpn.ac.uk