|  |  | 
    |  |  | 
    |  |  | 
    |  |  | 
    |  |  | 
    |  | 
        
          | __init__(self,
        elements,
        name= '',
        alphabet=None,
        origin=None,
        entry_id='',
        chain='',
        unknown_res_type='X',
        gap_chars=('~'))Make a sequence object from a list of strings, using a mapping of 
      strings to element types.
 |  |  | 
    |  |  | 
    |  |  | 
    |  |  | 
    |  |  | 
    |  |  | 
    |  |  | 
    |  |  | 
    |  |  | 
    |  | 
        
          | __add__(self,
        other) TODO: Do this properly
 |  |  | 
    |  | 
        
          | _makeSeqElements(self,
        elements) Return a list of elements converted to proper sequence items
 |  |  | 
    | Sequence | 
        
          | getSubsequence(self,
        start,
        end) Return a sequence containing a subset of the elements in this one
 |  |  | 
    |  | 
        
          | setName(self,
        name) Set the name on the instance and emit a notification
 |  |  | 
    |  | 
        
          | get(self,
        index,
        annotation=None) Returns the item at the specified index.
 |  |  | 
    |  | 
        
          | index(self,
        res) Returns the index of the specified residue; raises ValueError if not 
      present
 |  |  | 
    | list | 
        
          | getGaps(self) Returns:
      The indices of gaps in the sequence, if any
 |  |  | 
    | list of (object, int) | 
        
          | getGapsByKeyFunc(self,
        key_func) Given a key function to reidentify residues, build a list of tuples 
      with gap information.
 |  |  | 
    | list of int | 
        
          | getGapIndicesByKeyFunc(self,
        gap_info,
        key_func) Converts a gap_info list and key func into a list of gap indices
 |  |  | 
    |  | 
        
          | _addGaps(self,
        gaps) Add gaps to the sequence from a list of gap indices
 |  |  | 
    | int | 
        
          | getNumResidues(self) Return the number of residues in the sequence, that is, the length of
      the sequence without gaps
 |  |  | 
    |  | 
        
          | addGaps(self,
        gaps) Add gaps to the sequence at the specified indices
 |  |  | 
    |  | 
        
          | setGaps(self,
        gaps) Sets gaps on the sequence from a list of gap indices, relative to the
      ungapped sequence
 |  |  | 
    |  | 
        
          | _validateGapRemoval(self,
        gaps) |  |  | 
    |  | 
        
          | removeGaps(self,
        gaps) Removes the specified gaps from the sequence
 |  |  | 
    |  | 
        
          | _removeAllGaps(self) Remove gaps from the sequence
 |  |  | 
    |  | 
        
          | removeAllGaps(self) Remove gaps from the sequence
 |  |  | 
    |  | 
        
          | insert(self,
        index,
        elements) Insert a list of elements or sequence element into this sequence
 |  |  | 
    |  | 
        
          | mutate(self,
        start,
        end,
        elements) Mutate sequence elements starting at the given index to the provided 
      elements
 |  |  | 
    |  | 
        
          | remove(self,
        start,
        end=None) Removes elements from the sequence from the index start and returns 
      the removed elements as a new sequence
 |  |  | 
    |  | 
        
          | append(self,
        element) Appends an element to the sequence
 |  |  | 
    |  | 
        
          | extend(self,
        elements) Extends the sequence with elements from a list
 |  |  | 
    |  |  | 
    |  | 
        
          | removeFromSequence(self,
        filter_func,
        start=0,
        end=None) Remove any residues matching the specified filter_func from the 
      sequence
 |  |  | 
    |  | 
        
          | sanitize(self,
        start=0,
        end=None) Remove gaps and unknown sequence elements from sequence
 |  |  | 
    | float | 
        
          | _getScore(self,
        scoring_function,
        reference,
        consider_gaps=True) Return a float scoring between the sequence and a reference sequence,
      assuming that they're already aligned, calculated using provided 
      scoring_function method of
 Residueclass. |  |  | 
    | float | 
        
          | getIdentity(self,
        reference,
        consider_gaps=True) Return a float scoring the identity between the sequence and a 
      reference sequence, assuming that they're already aligned
 |  |  | 
    | float | 
        
          | getSimilarity(self,
        reference,
        consider_gaps=True) Return a float score of the similarity count between the sequence and
      a reference sequence, assuming that they're already aligned
 |  |  | 
    | float | 
        
          | getHomology(self,
        reference,
        consider_gaps=True) Return a float scoring the homology between the sequence and a 
      reference sequence, assuming that they're already aligned
 |  |  | 
    | float | 
        
          | getSimilarityScore(self,
        reference) Return the total score of similarity between the sequence and a 
      reference sequence, assuming that they're already aligned.
 |  |  | 
    | int or None | 
        
          | getNextResidueIndex(self,
        index) Return the index of the next residue in the sequence (ignoring gaps) 
      or None if there is none
 |  |  | 
    | schrodinginer.application.msv.domain.residue.Residue | 
        
          | getNextResidue(self,
        index) Return the next residue in the sequence (ignoring gaps) or None if 
      there is none
 |  |  | 
    | int or None | 
        
          | getPreviousResidueIndex(self,
        index) Return the index of the previous residue in the sequence (ignoring 
      gaps) or None if there is none
 |  |  | 
    | schrodinginer.application.msv.domain.residue.Residue | 
        
          | getPreviousResidue(self,
        index) Return the next residue in the sequence (ignoring gaps) or None if 
      there is none
 |  |  | 
  
    | Inherited from Qt.QtCore.QObject:connect,emit Inherited from PyQt4.QtCore.QObject:__getattr__,blockSignals,childEvent,children,connectNotify,customEvent,deleteLater,destroyed,disconnect,disconnectNotify,dumpObjectInfo,dumpObjectTree,dynamicPropertyNames,event,eventFilter,findChild,findChildren,inherits,installEventFilter,isWidgetType,killTimer,metaObject,moveToThread,objectName,parent,property,pyqtConfigure,receivers,removeEventFilter,sender,senderSignalIndex,setObjectName,setParent,setProperty,signalsBlocked,startTimer,thread,timerEvent,tr,trUtf8 Inherited from sip.simplewrapper:__new__ Inherited from object:__delattr__,__format__,__getattribute__,__hash__,__reduce__,__reduce_ex__,__setattr__,__sizeof__,__subclasshook__ |