OpenSWATH - GUI Views

The views in TAPIR are the left-hand tree view (PeptidesTreeView) as well as the right-hand plotting view (Plot).

PeptideTreeView Module

PeptideTreeView

class openswathgui.views.PeptideTree.PeptidesTreeView

Bases: PyQt4.QtGui.QTreeView

The Peptide Tree View widget is the view implementation for the left side tree view

expandMultiElementItems()

Expand all top elements in the tree that have more than one child

iterAllLevelElements(column)
iterTopLevelElements(column)
selectAndScrollTo(model_idx)

Plot Module

Plot

There are two implementations of the plotting view, one uses guiqwt (may not be present on all systems) and the other one uses plain Qwt (should be safer).

class openswathgui.views.Plot.CurveItemModel(*args, **kwargs)

Bases: openswathgui.views.Plot.CurveItem

A single curve

class openswathgui.views.Plot.GuiQwtMultiLinePlot(*args, **kwargs)

Bases: openswathgui.views.Plot.CurveDialog

Widget for an individual plot of transitions

For the Curve window we could use a CurveDialog or a CurvePlot.

CurveDialog has more features and seems more advanced.

add_range_to_plot(plot, this_range)
create_curves(labels, this_range, show_legend=True)
initialize()
mouseReleaseEvent(event)
rangeChanged(data)
replot()
setAxisFontSize(fontsize)
setDataModel(run)
setTitleFontSize(fontsize)
set_x_limits(xmin, xmax)
set_y_limits(ymin, ymax)
set_y_limits_auto(xmin, xmax)

Automatically set y limits based on the data in the plot and the visible range xmin, xmax.

update_all_curves(data, labels, ranges, mscore, intensity, assay_rt, show_legend)
zoomChanged
class openswathgui.views.Plot.QwtMultiLinePlot(*args, **kwargs)

Bases: PyQt4.Qwt5.Qwt.QwtPlot

Widget for an individual plot of transitions (using Qwt Plot)

Implements the same interface as the GuiQwtMultiLinePlot, but performs faster.

clearZoomStack()

Auto scale and clear the zoom stack

create_curves(labels, this_range, show_legend=True)
drawCanvas(painter)
draw_range(painter, l_width, r_width, is_first)
initialize()
mousePressEvent(event)
mouseReleaseEvent(event)
setAxisFontSize(fontsize)
setDataModel(run)
setTitleFontSize(fontsize)
set_x_limits(xmin, xmax)
set_y_limits(ymin, ymax)
set_y_limits_auto(xmin, xmax)

Automatically set y limits based on the data in the plot and the visible range xmin, xmax.

update_all_curves(data, labels, ranges, mscore, intensity, assay_rt, show_legend)
zoomChanged