Data Model version 2.0.6

Method: getSeqString


    getter for derived attribute seqString

guid: www.ccpn.ac.uk_Fogh_2006-08-16-18:23:34_00056
OpType: get
OpSubType: None
isQuery: True
isAbstract: False
Scope: instance_level
Code: ll = self.sortedMolResidues()
result = ''
if ll:
  
  from ccp.general.Constants import ccpCodeToCode1LetterDict
  molType = ll[0].molType
  mapDict = ccpCodeToCode1LetterDict.get(molType)
  
  if mapDict is not None and self.isStdLinear:
    output = [None] * len(ll)
    ii = -1

    for rr in ll:
      if rr.molType != molType:
        break
      
      ii = ii + 1
      output[ii] = mapDict.get(rr.ccpCode,'*')

    else:
      result = ''.join(output)
  Data Model Version 2.0.6
Go to Top  
  Autogenerated by  PyApiDocGen  revision 1.3   on  Wed Aug 7 15:06:29 2013    from data model package  ccp.api.molecule.Molecule.Molecule   revision 1.66  
  Work done by the CCPN team.
www.ccpn.ac.uk