SamSifter - A Workflow Editor for Metagenomic Analysis.
SamSifter helps you create filter workflows for next-generation sequencing data. It is primarily used to process SAM files generated by MALT prior to metagenomic analysis in MEGAN.
Next to the module samsifter.samsifter, which runs the actual SamSifter GUI, and the small samsifter.version, which specifies the current release number in a central place, this package also contains several subpackages with all classes and functions the program relies on:
SamSifter helps you create filter workflows for NGS data.
It is primarily used to process SAM files generated by MALT prior to metagenomic analysis in MEGAN.
Bases: PyQt4.QtGui.QMainWindow
Main window of SamSifter GUI interface.
Provides a central list view of filter items and freely arrangeable docks for filter settings, toolbox and log messages.
Adds actions in list to target menu.
Overrides Qt4 base method to also insert separators for ‘None’ entries.
Parameters: |
|
---|
Insert cloned copy of filter item into the list model.
Note
C++ QWidgets do NOT support pythonic copy/deepcopy/pickle! Thus they can not be easily encoded to/decoded from MIME for standard Qt4 drag&drop support and have to be cloned instead.
Adds a filename to the list of recently used files.
Parameters: | filename (str) – Path of file to be added to list. |
---|
Confirm before exiting and save settings for next launch.
Overrides parent QT class method to ask for confirmation and save window settings, unsaved files and preferences.
Parameters: | event (QEvent) – Close event triggered by closing the main window or kernel signals. |
---|
Delete currently selected item from model.
Returns: | Success of delete operation. |
---|---|
Return type: | bool |
Open workflow data from file.
Retrieves filename from user data of QAction when called from list of recently used files (signal emits a boolean).
Parameters: | filename (str, optional) – Path of file to be opened. |
---|
Move item in model.
Parameters: | positions (int) – number of positions to move currently selected item (negative = up, positive = down) |
---|---|
Returns: | Success of moving operation. |
Return type: | bool |
Move currently selected item down by one position.
Returns: | Success of moving operation. |
---|---|
Return type: | bool |
Move currently selected item up by one position.
Returns: | Success of moving operation. |
---|---|
Return type: | bool |
Asks user for confirmation to save any unsaved changes.
Returns: | True if ok to continue, False if unsaved changes still exist. |
---|---|
Return type: | bool |
Handle changes in the settings dialog.
Indicates unsaved settings and re-validates the workflow.
Show hints to resolve errors and prevent running invalid workflows.
Parameters: | message (str, optional) – Message to be displayed in message dock. |
---|
Fills the ‘File’ menu with actions and recently used files.
Creates entries in the ‘Edit > Add filter...’ menu.
Compiles available filters to group them into named categories.
Note
To add a new filter or tool to the menu of available items simply choose a category and append your samsifter.models.filter.FilterItem to the corresponding list. This is usually done by calling the item() method of your module in package samsifter.tools. Entries will be sorted by category name and item name prior to display in the GUI so the order within the list does not matter.
In order to call the item() method of your new module you will also have to import it in the header of this module.
Runs command to compile temp statistics files into one CSV file.
Terminates current process and all child processes.
Default termination of QProcess won’t work here because bash spawns independent children that will continue to run. TODO: Use POSIX command ‘kill $(ps -o pid= –ppid $PID)’ where pkill is not available
Updates filter settings view upon change of focus in workflow.
Parameters: |
|
---|
Program version of SamSifter
Follows the semantic versioning style as described at http://semver.org/.