Trees | Indices | Help |
|
---|
|
object --+ | ui.qt.table_helper.DataMethodDecoratorMixin --+ | ui.qt.table_speed_up.MultipleRolesRoleModelMixin --+ | ui.qt.table_speed_up.MultipleRolesRoleProxyMixin --+ | object --+ | | | ui.qt.table_speed_up.MultipleRolesRoleProxyPassthroughMixin --+ | | | ProxyMixin --+ | | | PostReorderingProxyMixin --+ | object --+ | | | sip.simplewrapper --+ | | | sip.wrapper --+ | | | PyQt5.QtCore.QObject --+ | | | PyQt5.QtCore.QAbstractItemModel --+ | | | PyQt5.QtCore.QAbstractProxyModel --+ | | | NestedProxy --+ | AnnotationProxyModel
A proxy model that creates children rows for currently displayed annotations and adds a spacer row in between sequences. This proxy can be toggled between grouping rows by sequence and grouping rows by annotation.
|
|||
Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
tuple |
|
||
|
|||
SequenceNums |
|
||
|
|||
|
|||
tuple |
|
||
|
|||
|
|||
|
|||
object |
|
||
dict |
|
||
|
|||
|
|||
|
|||
int or NoneType |
|
||
|
|||
int or NoneType |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
GroupBy |
|
||
|
|||
set |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from Inherited from Inherited from |
|
|||
enum.Enum or list
|
_all_global_ann An enum containing all global annotations present in the alignment. |
||
enum.Enum or list
|
_all_seq_ann An enum containing all sequence annotations present in the alignment. |
||
list |
_all_structureless_seq_ann All sequence annotations present in the alignment that don't require a structure. |
||
GroupBy |
_group_by Whether the table is currently grouped by sequence or by annotation. |
||
list |
_group_by_ann_info A list of annotations currently displayed in the table. |
||
_group_by_ann_seq_nums A SequenceInfo object containing sequence numbers for the annotations that do and do not require a structure. |
|||
list |
_seq_info A list of sequences in the table. |
||
list |
_shown_global_ann A list of all global annotations that are currently displayed. |
||
set |
_shown_row_types A set of all global and sequence annotations that are currently displayed. |
|
|||
|
|
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
Generate lists of currently shown sequence annotations for structured and structureless sequences.
|
|
|
Determine what source index and annotation the specified index maps to
|
|
|
|
Provide data for the specified index and role. Subclasses normally do
not need to redefine this method. Instead, new methods should be created
and decorated with
|
Provide data for all requested roles. The last argument must be an iterable of roles to fetch data for. All additional arguments will be passed to the data methods.
|
Return the type of data contained in the specified row. The return value will be either a RowType enum or an annotation enum.
|
Return the annotation type for spacer rows that contain labels. When
grouping by annotation, the spacer row in between two annotation types is
used to label the following annotation type. This method will return
|
Return the range of values contained in the specified row.
|
Determine the appropriate role to use for fetching annotation data range for a given row.
|
|
Determine the appropriate role to use for fetching display data range for a given row.
|
|
|
|
|
See Qt documentation for additional method documentation Everything is selectable except for spacers
|
Pass the reorderRow request down to the next proxy after translating the row numbers. We override PostReorderingProxyMixin.reorderRow so we can handle drops on annotation rows appropriately. (Drops on an annotation row are treated as a drop *after* the sequence.) See ReorderingProxyModel.reorderRow for documentation on arguments and the return value.
|
Respond to the rowsAboutToBeInserted signal from the source model. See Qt documentation for rowsAboutToBeInserted for argument documentation. |
Respond to the rowsInserted signal from the source model. See Qt documentation for rowsInserted for argument documentation. |
Respond to the rowsAboutToBeRemoved signal from the source model. If in group by annotation mode, note that this method removes all annotation rows for the deleted sequences. Also note that self._group_by_ann_info and self._group_by_ann_seq_nums will be out of sync until _sourceRowsRemoved is run. See Qt documentation for rowsAboutToBeRemoved for argument documentation. |
Respond to the rowsRemoved signal from the source model. See Qt documentation for rowsRemoved for argument documentation. |
Respond to the dataChanged signal from the source model. See Qt documentation for dataChanged for argument documentation. |
Should the rows be grouped by sequence or by annotation type?
|
Are the rows currently grouped by sequence or by annotation type?
|
Allow only the specified annotations
|
Return a set of allowed annotation types
|
Toggle visibility for the specified annotation
|
Toggle visibility for the specified annotations
|
Update which annotations are shown and hidden. Update
|
Update the given list of shown annotations to reflect the current
contents of
|
|
|
|
_all_global_annAn enum containing all global annotations present in the alignment. If no source model has been set, is an empty list.
|
_all_seq_annAn enum containing all sequence annotations present in the alignment. If no source model has been set, is an empty list.
|
_group_by_ann_infoA list of annotations currently displayed in the table. Each annotation is represented by a GroupByAnnotationInfo object. This value is only populated when the table is grouped by annotation. It isNone when the table is grouped by sequence.
|
_group_by_ann_seq_numsA SequenceInfo object containing sequence numbers for the annotations that do and do not require a structure. Note that theGroupByAnnotationInfo.seqs values in _group_by_ann_info point to
the sequence number lists in this object. As such, sequence numbers for
all annotations can be updated by updating this object. This value is
only populated when the table is grouped by annotation. It is
None when the table is grouped by sequence.
|
_seq_infoA list of sequences in the table. Each sequence is represented by a SequenceInfo object. TheSequenceInfo.has_struc values are always populated
for each sequence. The SequenceInfo.ann values
are only populated when the table is grouped by sequence. They are
None when the table is grouped by annotation.
|
_shown_global_annA list of all global annotations that are currently displayed. Annotations are listed in the order that they are displayed.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 2 06:33:22 2017 | http://epydoc.sourceforge.net |