A ProteinAlignment class that presents the same interface as a regular
ProteinAlignment but optionally accomplishes mutating operations via a
command stack.
If no command stack is set on the object, commands are executed but
cannot be undone.
|
|
|
reorderSequences(self,
seq_indices)
Reorder the sequences in the alignment using the specified list of
indices |
|
|
|
setQuerySeq(self,
seq=None)
Set the specified sequence as the query sequence. |
|
|
|
addSeqs(self,
seqs,
index=None)
Add multiple sequences to the alignment |
|
|
|
addSeqsByIndices(self,
seq_map)
Insert a sequences at the specified indices in the alignment. |
|
|
|
|
|
|
|
removeSeqs(self,
seqs)
Remove multiple sequences from the alignment |
|
|
|
replaceSeq(self,
seq,
index)
Replace the sequence at the specified index with the elements in the
specified sequence |
|
|
|
addOrReplaceSeqs(self,
seqs,
identifier_func)
Given seqs and an identifier_func, replaces seqs in the alignment
matching the identifier_func and appends any additional seqs to the
alignment |
|
|
|
|
|
removeResidues(self,
residues)
Removes the specified residues from the alignment and emits the
residuesRemoved signal with the selection |
|
|
|
mutateResidues(self,
mutations)
Mutate the residues at the specified locations in the alignment |
|
|
|
addResidues(self,
selection)
Adds the specified residues to the alignment |
|
|
|
addGaps(self,
gap_indices)
Adds gaps to the alignment |
|
|
|
setGaps(self,
gap_indices)
Sets gaps on the alignment |
|
|
|
|
|
removeTerminalGaps(self)
Removes the gaps from the ends of every sequence in the alignment |
|
|
|
removeAllGaps(self)
Removes all the gaps of the sequences in the alignment. |
|
|
|
_getInsertCommand(self,
aln,
start) |
|
|
|
insertSubalignment(self,
aln,
start)
Insert an alignment into the current alignment at the specified index |
|
|
|
removeSubalignment(self,
start,
end)
Remove a block of the subalignment from the start to end points,
including column locks in that region |
|
|
|
|
|
replaceSubalignment(self,
aln,
start,
end)
Replace a subsection of the alignment indicated by start and end
indices with the specified alignment |
|
|
|
setLockedColumns(self,
columns,
lock=True)
Sets the specified columns to the specified lock state |
|
|
|
setAllLocks(self,
lock=True)
Convenience method to set all the locks to the specified lock state
at once |
|
|
|
|
Inherited from domain.alignment.ProteinAlignment :
__init__ ,
toClustalFile ,
toFastaFile ,
toFastaString ,
toFastaStringList
Inherited from domain.alignment.BaseAlignment :
__add__ ,
__contains__ ,
__deepcopy__ ,
__getitem__ ,
__iter__ ,
__len__ ,
__repr__ ,
__str__ ,
addSeq ,
alignmentLengthAboutToChange ,
alignmentLengthChanged ,
alignmentLocked ,
calculateMatrix ,
columnHasAllSameResidues ,
columns ,
createConsensusSequence ,
findPattern ,
getAlignedBlocks ,
getColumn ,
getEntropy ,
getFrequencies ,
getGapIndicesByKeyFunc ,
getGaps ,
getGapsByKeyFunc ,
getGlobalAnnotationData ,
getHiddenSeqIndices ,
getIdentities ,
getQuerySeq ,
getRedundantSequences ,
getResidueData ,
getResidueIndices ,
getSeqIndex ,
getSimilarityScore ,
getSubalignment ,
getTerminalGaps ,
getVisibleSeqIndices ,
isQuerySeq ,
iterResidues ,
lockedColumns ,
makeResidueSelection ,
notifyResDisplayChanged ,
notifyResidueSelection ,
notifySequenceVisibilityChanged ,
querySequenceUpdated ,
replaceResiduesWithGaps ,
residueVisibilityChanged ,
residuesAdded ,
residuesRemoved ,
residuesSelected ,
sequenceNameChanged ,
sequenceResiduesChanged ,
sequenceVisibilityChanged ,
sequencesAboutToBeInserted ,
sequencesAboutToBeRemoved ,
sequencesAboutToBeReordered ,
sequencesInserted ,
sequencesRemoved ,
sequencesReordered
Inherited from domain.alignment.BaseAlignment (private):
_addSeq ,
_adjustGapsInSubalignments ,
_checkAlignmentLength ,
_getAddOrReplaceSeqs ,
_getAlignmentDescription ,
_getGapOnlyColumns ,
_getQuerySeqReordering ,
_getRegions ,
_getTextFormattedAlignment ,
_monitorSequence ,
_recalculateLength ,
_removeResidues ,
_removeSeq ,
_removeSeqByIndex ,
_reorderSequences ,
_sequenceLengthAboutToChange ,
_sequenceLengthChanged ,
_setLockedColumns ,
_stopMonitoringSequence ,
_updateColumnSameResCache ,
_validateGapIndices
Inherited from PyQt5.QtCore.QObject :
__getattr__ ,
blockSignals ,
childEvent ,
children ,
connectNotify ,
customEvent ,
deleteLater ,
destroyed ,
disconnect ,
disconnectNotify ,
dumpObjectInfo ,
dumpObjectTree ,
dynamicPropertyNames ,
event ,
eventFilter ,
findChild ,
findChildren ,
inherits ,
installEventFilter ,
isSignalConnected ,
isWidgetType ,
isWindowType ,
killTimer ,
metaObject ,
moveToThread ,
objectName ,
objectNameChanged ,
parent ,
property ,
pyqtConfigure ,
receivers ,
removeEventFilter ,
sender ,
senderSignalIndex ,
setObjectName ,
setParent ,
setProperty ,
signalsBlocked ,
startTimer ,
thread ,
timerEvent ,
tr
Inherited from sip.simplewrapper :
__new__
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|