Package schrodinger :: Package application :: Package msv :: Package domain :: Module undoable_sequence :: Class ProteinSequence
[hide private]
[frames] | no frames]

Class ProteinSequence

       object --+                    
                |                    
sip.simplewrapper --+                
                    |                
          sip.wrapper --+            
                        |            
     PyQt4.QtCore.QObject --+        
                            |        
            sequence.Sequence --+    
                                |    
         sequence.ProteinSequence --+
                                    |
                                   ProteinSequence

Nested Classes [hide private]

Inherited from sequence.ProteinSequence: AnnotationClass

Inherited from sequence.Sequence: ORIGIN

Instance Methods [hide private]
 
setUndoStack(self, undo_stack)
 
setName(self, name)
Set the name on the instance and emit a notification
 
addGaps(self, gaps)
Add gaps to the sequence at the specified indices
 
removeGaps(self, gaps)
Removes the specified gaps from the sequence
 
setGaps(self, gaps)
Sets gaps on the sequence from a list of gap indices, relative to the ungapped sequence
 
removeAllGaps(self)
Remove gaps from the sequence
 
extend(self, elements)
Extends the sequence with elements from a list
 
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
 
sanitize(self, start=0, end=None)
Remove gaps and unknown sequence elements from sequence

Inherited from sequence.ProteinSequence: __init__, append, getGapCount, getTerminalGaps, makeSeqElement, removeStructurelessResidues, removeTerminalGaps

Inherited from sequence.ProteinSequence (private): _makeSeqElements

Inherited from sequence.Sequence: __add__, __contains__, __copy__, __deepcopy__, __getitem__, __iter__, __len__, __repr__, __str__, get, getGapIndicesByKeyFunc, getGaps, getGapsByKeyFunc, getHomology, getIdentity, getNextResidue, getNextResidueIndex, getNumResidues, getPreviousResidue, getPreviousResidueIndex, getSimilarity, getSimilarityScore, getSubsequence, index, lengthAboutToChange, lengthChanged, nameChanged, removeFromSequence, replaceAllElements, residuesChanged, residuesDeleted

Inherited from PyQt4.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, 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__

Class Methods [hide private]

Inherited from sequence.ProteinSequence: isValid

Class Variables [hide private]

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Properties [hide private]

Inherited from sequence.Sequence: annotation_types, fullname, name, origin

Inherited from sequence.Sequence (private): _origin_setter

Inherited from object: __class__

Method Details [hide private]

setName(self, name)

 

Set the name on the instance and emit a notification

Parameters:
  • name - The new name for the sequence
Decorators:
  • @command.do_command
Overrides: sequence.Sequence.setName
(inherited documentation)

addGaps(self, gaps)

 

Add gaps to the sequence at the specified indices

Parameters:
  • gaps - A list of gap indices
Decorators:
  • @command.do_command
Overrides: sequence.Sequence.addGaps
(inherited documentation)

removeGaps(self, gaps)

 

Removes the specified gaps from the sequence

Parameters:
  • gaps - A list of gap indices
Decorators:
  • @command.do_command
Overrides: sequence.Sequence.removeGaps
(inherited documentation)

setGaps(self, gaps)

 

Sets gaps on the sequence from a list of gap indices, relative to the ungapped sequence

Parameters:
  • gaps - A list of gap indices
Decorators:
  • @command.do_command
Overrides: sequence.Sequence.setGaps
(inherited documentation)

removeAllGaps(self)

 

Remove gaps from the sequence

Decorators:
  • @command.do_command
Overrides: sequence.Sequence.removeAllGaps
(inherited documentation)

extend(self, elements)

 

Extends the sequence with elements from a list

Parameters:
  • elements - The list containing elements with which to extend this one
Decorators:
  • @command.do_command
Overrides: sequence.Sequence.extend
(inherited documentation)

insert(self, index, elements)

 

Insert a list of elements or sequence element into this sequence

Parameters:
  • index - The index at which to insert elements
  • elements - A list of elements to insert
Decorators:
  • @command.do_command
Overrides: sequence.Sequence.insert
(inherited documentation)

mutate(self, start, end, elements)

 

Mutate sequence elements starting at the given index to the provided elements

Parameters:
  • start - The index at which to start mutating
  • end - The index of the last mutated element
  • elements - The elements to which to mutate the sequence
Decorators:
  • @command.do_command
Overrides: sequence.Sequence.mutate
(inherited documentation)

remove(self, start, end=None)

 

Removes elements from the sequence from the index start and returns the removed elements as a new sequence

This method is safe to call with invalid indices (as may happen when an alignment is iterating through sequences calling remove at a single index).

Parameters:
  • start - The index at which to begin removing sequence elements
  • end - The index at which to end removing sequence elements
Decorators:
  • @command.do_command
Overrides: sequence.Sequence.remove
(inherited documentation)

sanitize(self, start=0, end=None)

 

Remove gaps and unknown sequence elements from sequence

Decorators:
  • @command.do_command
Overrides: sequence.Sequence.sanitize
(inherited documentation)