samsifter.gui package

composites module

Composed widgets used to visualize filter parameters in a form layout.

class FileChooser(parent=None, suffix_string='CSV files (*.csv *.CSV)')[source]

Bases: PyQt4.QtGui.QWidget

Combined LineEdit and Pushbutton for standard file dialog to select a file.

get_filename()[source]
get_suffix_string()[source]
highlight(boolean=True)[source]

Indicate errors or pending actions by changing background color.

set_filename(filename)[source]

Set filename while maintaining cursor position and validating input on the fly.

set_suffix_string(suffix_string)[source]
show_dialog()[source]
class OptionSwitcher(parent=None, options=[True, False])[source]

Bases: PyQt4.QtGui.QWidget

Group of coupled radio buttons to choose between exclusive options.

get_current_index()[source]
get_options()[source]
set_current_index(index)[source]
set_options(options)[source]
class SliderSpinboxCombo(parent=None, minimum=0.0, maximum=100.0, default=0.0, precision=2)[source]

Bases: PyQt4.QtGui.QWidget

Slider coupled with Spinbox for setting numerical values between a minimum and maximum.

denormalize(value)[source]
get_value()[source]
normalize(value)[source]
on_slider_value_change(value)[source]
on_spinner_value_change(value)[source]
set_value(value)[source]

dialogs module

Created on Tue Jan 27 15:34:20 2015

class BashOptions(use_basenames=True, processing_mode=3, print_commands=False, stop_on_error=True)[source]

Bases: builtins.object

Options for the export of a workflow to a bash script.

PARALLEL_MODE = 3
SEQUENTIAL_MODE = 2
SINGLE_MODE = 1
get_print_commands()[source]
get_processing_mode()[source]
get_stop_on_error()[source]
get_use_basenames()[source]
set_print_commands(boolean)[source]
set_processing_mode(mode)[source]
set_stop_on_error(boolean)[source]
set_use_basenames(boolean)[source]
class BashOptionsDialog(parent=None)[source]

Bases: PyQt4.QtGui.QDialog

Dialog to set bash script export options.

get_options()[source]

Shows dialog and returns options unless user decides to cancel.

save_options()[source]

Stores current settings in BashOptions object to be returned.

class RmaOptions(sam2rma_path='/usr/local/megan/tools/sam2rma', top_percent=1, max_expected=0.01, min_score=50, min_support_percent=0.05, min_support=1)[source]

Bases: builtins.object

Options for the conversion of SAM to RMA files.

get_max_expected()[source]
get_min_score()[source]
get_min_support()[source]
get_min_support_percent()[source]
get_sam2rma_path()[source]
get_top_percent()[source]
set_max_expected(max_expected)[source]
set_min_score(min_score)[source]
set_min_support(min_support)[source]
set_min_support_percent(min_support_percent)[source]
set_sam2rma_path(sam2rma_path)[source]
set_top_percent(top_percent)[source]
class RmaOptionsDialog(saved_options=None, parent=None)[source]

Bases: PyQt4.QtGui.QDialog

Modal dialog to set SAM2RMA conversion settings.

get_options()[source]

Shows dialog and returns options unless user decides to cancel.

reset_form()[source]

Resets all form elements to defaults.

save_options()[source]

Stores current settings in BashOptions object to be returned.

widgets module

Created on Fri Dec 12 16:41:29 2014

class FilterWidget(item, parent=None)[source]

Bases: PyQt4.QtGui.QWidget

Representation of a filter action in GUI.

add_parameter(parameter)[source]
on_value_change(value)[source]
set_name(name)[source]
value_changed
class InputWidget(parent=None)[source]

Bases: PyQt4.QtGui.QWidget

Representation of file input action in GUI.

highlight(boolean=True)[source]

Indicate errors or pending actions by changing background color.

set_filename(filename)[source]

Update filename in text box while retaining current cursor position.

show_dialog()[source]
class OutputWidget(parent=None)[source]

Bases: PyQt4.QtGui.QWidget

Representation of file output action in GUI.

highlight(boolean=True)[source]

Indicate errors or pending actions by changing background color.

set_filename(filename)[source]

Update filename in text box while retaining current cursor position.

show_dialog()[source]

Table Of Contents

Previous topic

samsifter.tools package

Next topic

samsifter.models package

This Page