OpenMS  2.6.0
TOPPViewBase.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // OpenMS -- Open-Source Mass Spectrometry
3 // --------------------------------------------------------------------------
4 // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
5 // ETH Zurich, and Freie Universitaet Berlin 2002-2020.
6 //
7 // This software is released under a three-clause BSD license:
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in the
12 // documentation and/or other materials provided with the distribution.
13 // * Neither the name of any author or any participating institution
14 // may be used to endorse or promote products derived from this software
15 // without specific prior written permission.
16 // For a full list of authors, refer to the file AUTHORS.
17 // --------------------------------------------------------------------------
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 // ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING
22 // INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 //
30 // --------------------------------------------------------------------------
31 // $Maintainer: Timo Sachsenberg$
32 // $Authors: Marc Sturm, Timo Sachsenberg $
33 // --------------------------------------------------------------------------
34 
35 #pragma once
36 
37 // OpenMS_GUI config
38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
39 
40 //OpenMS
53 
54 //STL
55 #include <map>
56 
57 //QT
58 #include <QtWidgets/QMainWindow>
59 #include <QtWidgets/QButtonGroup>
60 #include <QtWidgets/QActionGroup>
61 #include <QtCore/QStringList>
62 #include <QtCore/QProcess>
63 
64 class QAction;
65 class QComboBox;
66 class QLabel;
67 class QLineEdit;
68 class QListWidget;
69 class QListWidgetItem;
70 class QTreeWidget;
71 class QTreeWidgetItem;
72 class QDockWidget;
73 class QToolButton;
74 class QCloseEvent;
75 class QTextEdit;
76 class QCheckBox;
77 class QSplashScreen;
78 class QToolButton;
79 class QWorkspace;
80 
81 namespace OpenMS
82 {
83  class Spectrum1DWidget;
84  class Spectrum2DWidget;
85  class Spectrum3DWidget;
86  class ToolsDialog;
87  class MultiGradientSelector;
88  class FileWatcher;
89 
124  class OPENMS_GUI_DLLAPI TOPPViewBase :
125  public QMainWindow,
126  public DefaultParamHandler
127  {
128  Q_OBJECT
129 
130  friend class TestTOPPView;
131 
132 public:
134 
135  //Feature map type
137  //Feature map managed type
139 
140  //Consensus feature map type
142  //Consensus map managed type
144 
145  //Peak map type
147  //Main managed data type (experiment)
149  //Main on-disc managed data type (experiment)
154 
156  TOPPViewBase(QWidget* parent = nullptr);
158  ~TOPPViewBase() override;
159 
172  void addDataFile(const String& filename, bool show_options, bool add_to_recent, String caption = "", UInt window_id = 0, Size spectrum_id = 0);
173 
190  void addData(FeatureMapSharedPtrType feature_map,
191  ConsensusMapSharedPtrType consensus_map,
192  std::vector<PeptideIdentification>& peptides,
193  ExperimentSharedPtrType peak_map,
194  ODExperimentSharedPtrType on_disc_peak_map,
195  LayerData::DataType data_type,
196  bool show_as_1d,
197  bool show_options,
198  bool as_new_window = true,
199  const String& filename = "",
200  const String& caption = "",
201  UInt window_id = 0,
202  Size spectrum_id = 0);
203 
205  void loadFiles(const StringList& list, QSplashScreen* splash_screen);
206 
212  void loadPreferences(String filename = "");
213 
215  void savePreferences();
216 
218  Param getSpectrumParameters(UInt dim);
219 
221  const LayerData* getCurrentLayer() const;
222 
223  //@name Accessors for the main gui components.
224  //@brief The top level enhanced workspace and the EnhancedTabWidgets resing in the EnhancedTabBar.
226  EnhancedWorkspace* getWorkspace();
228 
230  SpectrumWidget* getActiveSpectrumWidget() const;
231 
233  Spectrum1DWidget* getActive1DWidget() const;
234 
236  Spectrum2DWidget* getActive2DWidget() const;
237 
239  Spectrum3DWidget* getActive3DWidget() const;
241 
243  SpectrumCanvas* getActiveCanvas() const;
244 
246  SpectraIdentificationViewWidget* getSpectraIdentificationViewWidget();
247 
249  void showSpectrumWidgetInWindow(SpectrumWidget* sw, const String& caption);
250 
251 public slots:
253  void updateCurrentPath();
255  void openFileDialog(const String& initial_directory = "");
257  void showGoToDialog();
259  void preferencesDialog();
261  void layerStatistics();
263  void editMetadata();
265  void layerActivated();
267  void layerZoomChanged();
269  void linkZoom();
271  void layerDeactivated();
273  void closeFile();
274 
276  void updateBarsAndMenus();
278  void updateToolBar();
280  void updateLayerBar();
282  void updateViewBar();
284  void viewChanged(int);
286  void viewTabwidgetDoubleClicked(int);
288  void updateFilterBar();
290  void updateMenu();
292  void updateTabBar(QMdiSubWindow* w);
293 
300  void showStatusMessage(std::string msg, OpenMS::UInt time);
302  void showCursorStatus(double mz, double rt);
304  void showCursorStatusInvert(double mz, double rt);
306  void showTOPPDialog();
308  void annotateWithID();
310  void showSpectrumGenerationDialog();
312  void showSpectrumAlignmentDialog();
314  void showSpectrumAs1D(int index);
315  void showSpectrumAs1D(std::vector<int> indices);
317  void showCurrentPeaksAs2D();
319  void showCurrentPeaksAs3D();
321  void showCurrentPeaksAsIonMobility();
323  void showCurrentPeaksAsDIA();
325  void saveLayerAll();
327  void saveLayerVisible();
329  void toggleGridLines();
331  void toggleAxisLegends();
333  void toggleInterestingMZs();
335  void showPreferences();
337  void metadataFileDialog();
338 
342  void setDrawMode1D(int);
343  void setIntensityMode(int);
344  void changeLayerFlag(bool);
345  void changeLabel(QAction*);
346  void changeUnassigned(QAction*);
347  void resetZoom();
348  void toggleProjections();
350 
352  void loadFile(QString);
353 
355  void layerFilterVisibilityChange(bool);
356 
357 protected slots:
361  void layerSelectionChange(int);
364  void layerContextMenu(const QPoint& pos);
366  void logContextMenu(const QPoint& pos);
368  void layerVisibilityChange(QListWidgetItem* item);
370  void layerEdit(QListWidgetItem* /*item*/);
372 
374  void finishTOPPToolExecution(int exitCode, QProcess::ExitStatus exitStatus);
376  void abortTOPPTool();
378  void rerunTOPPTool();
380  void showSpectrumBrowser();
382  void showSpectrumMetaData(int spectrum_index);
383 
387  void closeByTab(int id);
390  void enhancedWorkspaceWindowChanged(int id);
392  void openRecentFile();
394  void copyLayer(const QMimeData* data, QWidget* source, int id = -1);
396 
398  void updateProcessLog();
399 
401  void fileChanged_(const String&);
402 protected:
404  void initializeDefaultParameters_();
405 
408  bool annotateMS1FromMassFingerprinting_(const FeatureMap& identifications);
409 
411  std::set<String> getFilenamesOfOpenFiles_();
412 
416  QStringList getFileList_(const String& path_overwrite = "");
417 
419  EnhancedTabBarWidgetInterface* window_(int id) const;
420 
422 
423  QDockWidget* layer_dock_widget_;
424  QDockWidget* views_dockwidget_;
425  QDockWidget* filter_dock_widget_;
427 
429 
433 
436 
438 
441 
443  FileWatcher* watcher_ = nullptr;
444 
446  bool watcher_msgbox_ = false;
447 
449  bool zoom_together_ = false;
450 
452 
455 
459  QToolBar* tool_bar_;
460 
461  // common intensity modes
462  QButtonGroup* intensity_button_group_;
463 
464  // 1D specific stuff
465  QToolBar* tool_bar_1d_;
466  QButtonGroup* draw_group_1d_;
467 
468  // 2D specific stuff
469  QToolBar* tool_bar_2d_peak_;
470  QToolBar* tool_bar_2d_feat_;
471  QToolBar* tool_bar_2d_cons_;
474  QAction* dm_hull_2d_;
475  QAction* dm_hulls_2d_;
476  QToolButton* dm_label_2d_;
477  QActionGroup* group_label_2d_;
478  QToolButton* dm_unassigned_2d_;
479  QActionGroup* group_unassigned_2d_;
480  QAction* dm_elements_2d_;
481  QAction* projections_2d_;
482  QAction* dm_ident_2d_;
484 
485 
487  EnhancedWorkspace ws_; // not a pointer, but an actual object, so it gets destroyed before the DefaultParamhandler (on which it depends)
490 
494  QLabel* message_label_;
497  QLabel* mz_label_;
499  QLabel* rt_label_;
501 
503 
504  void addRecentFile_(const String& filename);
507  void updateRecentMenu_();
509  QStringList recent_files_;
511  std::vector<QAction*> recent_actions_;
513 
514 
516 
517  void runTOPPTool_();
520  struct
521  {
522  Param param;
523  String tool;
524  String in;
525  String out;
526  String file_name;
527  String layer_name;
528  UInt window_id;
529  Size spectrum_id;
530  QProcess* process = nullptr;
531  QTime timer;
532  bool visible;
533  } topp_;
535 
537  void checkPreferences_();
539 
540  void closeEvent(QCloseEvent* event) override;
542 
544  enum LogState
545  {
548  LS_ERROR
549  };
551  void showLogMessage_(LogState state, const String& heading, const String& body);
552 
555 
557  void showTOPPDialog_(bool visible);
558 
562 
565 
570 
571 public:
573  static float estimateNoiseFromRandomMS1Scans(const ExperimentType& exp, UInt n_scans = 10);
574 
576  static bool hasPeptideIdentifications(const ExperimentType& map);
577 
578 private:
581  }; //class
582 
583 } //namespace
584 
OpenMS::TOPPViewBase::group_label_2d_
QActionGroup * group_label_2d_
Definition: TOPPViewBase.h:477
OpenMS::SpectrumCanvas::changeVisibility
void changeVisibility(Size i, bool b)
change the visibility of a layer
DefaultParamHandler.h
OpenMS::EnhancedWorkspace::tileVertical
void tileVertical()
arrange all windows vertically
OpenMS::Spectrum1DCanvas::mirrorModeActive
bool mirrorModeActive()
Returns whether this widget is currently in mirror mode.
tool_name
const char * tool_name
Definition: TOPPView.cpp:78
OpenMS::TOPPViewIdentificationViewBehavior::setVisibleArea1D
void setVisibleArea1D(double l, double h)
OpenMS::SpectrumWidget::aboutToBeDestroyed
void aboutToBeDestroyed(int window_id)
Message about the destruction of this widget.
OpenMS::TOPPViewBase::showStatusMessage
void showStatusMessage(std::string msg, OpenMS::UInt time)
Shows a status message in the status bar.
Definition: TOPPViewBase.cpp:1286
OpenMS::FileTypes::IDXML
OpenMS identification format (.idXML)
Definition: FileTypes.h:66
SpectrumAlignmentDialog.h
OpenMS::TOPPViewBase::spectra_view_widget_
SpectraViewWidget * spectra_view_widget_
Definition: TOPPViewBase.h:430
ConsensusXMLFile.h
OpenMS::DataFilters::DataFilter::field
FilterType field
Field to filter.
Definition: DataFilters.h:80
OpenMS::SpectrumCanvas::setVisibleArea
void setVisibleArea(AreaType area)
Sets the visible area.
OpenMS::SpectrumCanvas::IM_PERCENTAGE
Shows intensities normalized by layer maximum: f(x)=x/max(x)*100.
Definition: SpectrumCanvas.h:150
TOPPViewBase.h
OpenMS::EnhancedWorkspace
Definition: EnhancedWorkspace.h:49
OpenMS::LayerData::peptides
std::vector< PeptideIdentification > peptides
peptide identifications
Definition: LayerData.h:420
OpenMS::LayerData::name
String name
layer name
Definition: LayerData.h:414
OpenMS::Param::removeAll
void removeAll(const String &prefix)
Remove all entries that start with prefix.
OpenMS::Param::copy
Param copy(const String &prefix, bool remove_prefix=false) const
Returns a new Param object containing all entries that start with prefix.
OpenMS::TOPPViewBase::views_tabwidget_
QTabWidget * views_tabwidget_
Tabwidget that hold the different views on the loaded data.
Definition: TOPPViewBase.h:564
FileHandler.h
OpenMS::TOPPViewBase::resetZoom
void resetZoom()
Definition: TOPPViewBase.cpp:1336
OpenMS::TOPPViewOpenDialog::isDataDIA
bool isDataDIA() const
Returns if the data is DIA / SWATH-MS data.
FileTypes.h
TextFile.h
OpenMS::TOPPViewBase::setIntensityMode
void setIntensityMode(int)
Definition: TOPPViewBase.cpp:1345
SpectrumWidget.h
OpenMS::SpectrumWidget::sendStatusMessage
void sendStatusMessage(std::string, OpenMS::UInt)
Emits a status message that should be displayed for time ms. If time is 0 the message should be displ...
OpenMS::SpectrumCanvas::resetZoom
void resetZoom(bool repaint=true)
Zooms fully out and resets the zoom stack.
OpenMS::SpectraIdentificationViewWidget
Tabular visualization / selection of identified spectra.
Definition: SpectraIdentificationViewWidget.h:53
OpenMS::TOPPViewBase::tab_bar_
EnhancedTabBar tab_bar_
Tab bar. The address of the corresponding window to a tab is stored as an int in tabData()
Definition: TOPPViewBase.h:489
OpenMS::LayerData::ExperimentSharedPtrType
boost::shared_ptr< ExperimentType > ExperimentSharedPtrType
SharedPtr on MSExperiment.
Definition: LayerData.h:149
CONNECTCAST
#define CONNECTCAST(class, func, args)
Definition: GUIHelpers.h:51
AxisWidget.h
TheoreticalSpectrumGenerationDialog.h
OpenMS::MSSpectrum::containsIMData
bool containsIMData() const
do the names of internal metadata arrays contain any hint of ion mobility data, e....
OpenMS::FileWatcher::removeFile
void removeFile(const String &path)
removes a file from the watcher
Definition: FileWatcher.h:90
OpenMS::ToolsDialog::getInput
String getInput()
to get the parameter name for input
OpenMS::Spectrum3DWidget::canvas
Spectrum3DCanvas * canvas()
This method is overwritten to make the class specific members accessible.
Definition: Spectrum3DWidget.h:66
OpenMS::PeakFileOptions::setMetadataOnly
void setMetadataOnly(bool only)
sets whether or not to load only meta data
OpenMS::TOPPViewBase::CAPTION_3D_SUFFIX_
static const String CAPTION_3D_SUFFIX_
Suffix appended to caption of tabs when layer is shown in 3D.
Definition: TOPPViewBase.h:580
OpenMS::TOPPViewBase::identificationview_behavior_
TOPPViewIdentificationViewBehavior identificationview_behavior_
TOPPView behavior for the identification view.
Definition: TOPPViewBase.h:567
OpenMS::MSExperiment::containsScanOfLevel
bool containsScanOfLevel(size_t ms_level) const
returns true if at least one of the spectra has the specified level
OpenMS::SpectrumCanvas::getVisibleFeatureData
void getVisibleFeatureData(FeatureMapType &map) const
Fills the handed over map with the visible features of the current layer.
OpenMS::Spectrum3DOpenGLCanvas::setYLabel
void setYLabel(const QString &l)
Definition: Spectrum3DOpenGLCanvas.h:101
OpenMS::Spectrum1DWidget
Widget for visualization of several spectra.
Definition: Spectrum1DWidget.h:65
OpenMS::EnhancedTabBarWidgetInterface
Widgets that are placed into an EnhancedTabBar must implement this interface.
Definition: EnhancedTabBarWidgetInterface.h:51
VersionInfo.h
double
OpenMS::ConsensusXMLFile::store
void store(const String &filename, const ConsensusMap &consensus_map)
Stores a consensus map to file.
OpenMS::TOPPViewBase::addRecentFile_
void addRecentFile_(const String &filename)
adds a Filename to the recent files
Definition: TOPPViewBase.cpp:1148
OpenMS::LayerData::getDecoratedName
String getDecoratedName() const
get name augmented with attributes, e.g. [flipped], or '*' if modified
Definition: LayerData.h:451
OpenMS::TOPPViewBase::mz_label_
QLabel * mz_label_
m/z label for messages in the status bar
Definition: TOPPViewBase.h:497
OpenMS::LayerData::NamesOfLabelType
static const std::string NamesOfLabelType[SIZE_OF_LABEL_TYPE]
Label names.
Definition: LayerData.h:131
OpenMS::Internal::IndexedMzMLHandler::getParsingSuccess
bool getParsingSuccess() const
Returns whether parsing was successful.
OpenMS::GUIHelpers::openURL
static void openURL(const QString &target)
QListWidget
OpenMS::LayerData::FeatureMapSharedPtrType
boost::shared_ptr< FeatureMap > FeatureMapSharedPtrType
SharedPtr on feature map.
Definition: LayerData.h:137
OpenMS::Internal::DIntervalBase::minX
CoordinateType minX() const
Accessor for min_ coordinate minimum.
Definition: DIntervalBase.h:243
OpenMS::TOPPViewBase::toggleInterestingMZs
void toggleInterestingMZs()
Toggles drawing of interesting MZs.
Definition: TOPPViewBase.cpp:3391
OpenMS::TheoreticalSpectrumGenerationDialog::getSequence
String getSequence() const
OpenMS::LayerData::DT_CONSENSUS
Consensus feature data.
Definition: LayerData.h:97
OpenMS::TOPPViewIdentificationViewBehavior::activateBehavior
virtual void activateBehavior()
Slot for behavior activation.
OpenMS::LayerData::ConsensusMapSharedPtrType
boost::shared_ptr< ConsensusMap > ConsensusMapSharedPtrType
SharedPtr on consensus features.
Definition: LayerData.h:143
OpenMS::TOPPViewBase::runTOPPTool_
void runTOPPTool_()
Runs the TOPP tool according to the information in topp_.
Definition: TOPPViewBase.cpp:2328
QTextEdit
StopWatch.h
OpenMS::TOPPViewOpenDialog::getMergeLayer
Int getMergeLayer() const
Returns the index of the selected merge layer. If the option is not selected -1 is returned.
OpenMS::SpectrumCanvas::getLayerCount
Size getLayerCount() const
Returns the number of layers.
Definition: SpectrumCanvas.h:336
OpenMS::TOPPViewBase::LS_ERROR
Fatal error.
Definition: TOPPViewBase.h:548
OpenMS::SpectrumCanvas::setLabel
void setLabel(LayerData::LabelType label)
Definition: SpectrumCanvas.h:293
OpenMS::TOPPViewBase::intensity_button_group_
QButtonGroup * intensity_button_group_
Definition: TOPPViewBase.h:462
OpenMS::File::basename
static String basename(const String &file)
Returns the basename of the file (without the path).
OpenMS::Exception::InvalidValue
Invalid value exception.
Definition: Exception.h:335
OpenMS::Spectrum3DWidget::showCurrentPeaksAs2D
void showCurrentPeaksAs2D()
Requests to display all spectra in 2D plot.
OpenMS::Spectrum1DWidget::canvas
Spectrum1DCanvas * canvas()
This method is overwritten to make the class specific members accessible.
Definition: Spectrum1DWidget.h:77
OpenMS::SpectrumWidget::getWindowId
Int getWindowId() override
getter for the EnhancedTabBar window id as defined in the interface
OpenMS::MzMLFile::store
void store(const String &filename, const PeakMap &map) const
Stores a map in an MzML file.
OpenMS::Peak1D::setMZ
void setMZ(CoordinateType mz)
Mutable access to m/z.
Definition: Peak1D.h:121
OpenMS::TOPPViewOpenDialog::disableDimension
void disableDimension(bool as_2d)
Disables view dimension section and sets the selected option.
OpenMS::EnhancedTabBar::addTab
int addTab(const String &text, int id)
Adds a new tab with the name text and the identifier id.
OpenMS::Constants::k
const double k
OpenMS::SpectrumCanvas::IM_LOG
Logarithmic mode.
Definition: SpectrumCanvas.h:152
OpenMS::FileTypes::MZML
MzML file (.mzML)
Definition: FileTypes.h:72
OpenMS::TOPPViewBase::FeatureMapSharedPtrType
LayerData::FeatureMapSharedPtrType FeatureMapSharedPtrType
Definition: TOPPViewBase.h:138
OpenMS::SpectrumCanvas::changeLayerFilterState
void changeLayerFilterState(Size i, bool b)
change if the defined data filters are used
OpenMS::LayerData::L_NONE
No label is displayed.
Definition: LayerData.h:122
OpenMS::Param::setValue
void setValue(const String &key, const DataValue &value, const String &description="", const StringList &tags=StringList())
Sets a value.
OpenMS::Spectrum3DWidget
Widget for 3D-visualization of map data.
Definition: Spectrum3DWidget.h:53
OpenMS::DataValue::toQString
QString toQString() const
Conversion to QString.
OpenMS::LayerData::getOnDiscPeakData
const ODExperimentSharedPtrType & getOnDiscPeakData() const
Returns a mutable reference to the on-disc data.
Definition: LayerData.h:250
OpenMS::FileWatcher::addFile
void addFile(const String &path)
Adds a file to the watcher.
Definition: FileWatcher.h:84
OpenMS::TOPPViewOpenDialog
Dataset opening options for TOPPView.
Definition: TOPPViewOpenDialog.h:60
OpenMS::TOPPViewBase::getWorkspace
EnhancedWorkspace * getWorkspace()
returns a pointer to the EnhancedWorkspace containing SpectrumWidgets
Definition: TOPPViewBase.cpp:2104
ColorSelector.h
OpenMS::MzMLFile
File adapter for MzML files.
Definition: MzMLFile.h:55
OpenMS::TOPPViewBase::log_
QTextEdit * log_
Log output window.
Definition: TOPPViewBase.h:454
OpenMS::String
A more convenient string class.
Definition: String.h:59
Annotation1DDistanceItem.h
ParamXMLFile.h
OpenMS::DataFilters::DataFilter
Representation of a peak/feature filter combining FilterType, FilterOperation and a value.
Definition: DataFilters.h:74
OpenMS::DRange< 2 >
OpenMS::Exception::FileNotFound
File not found exception.
Definition: Exception.h:523
MzMLFile.h
OpenMS::Spectrum1DCanvas
Canvas for visualization of one or several spectra.
Definition: Spectrum1DCanvas.h:67
OpenMS::Param::setValidStrings
void setValidStrings(const String &key, const std::vector< String > &strings)
Sets the valid strings for the parameter key.
RAIICleanup.h
OpenMS::TOPPViewBase::FeatureMapType
LayerData::FeatureMapType FeatureMapType
Definition: TOPPViewBase.h:136
OpenMS::TOPPViewBase::current_path_
String current_path_
Definition: TOPPViewBase.h:561
OpenMS::MSExperiment
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
OpenMS::SpectrumSettings::getPrecursors
const std::vector< Precursor > & getPrecursors() const
returns a const reference to the precursors
OpenMS::FileTypes::CONSENSUSXML
OpenMS consensus map format (.consensusXML)
Definition: FileTypes.h:67
OpenMS::TOPPViewBase::abortTOPPTool
void abortTOPPTool()
aborts the execution of a TOPP tool
Definition: TOPPViewBase.cpp:3162
OpenMS::TOPPViewBase
Main window of TOPPView tool.
Definition: TOPPViewBase.h:124
OpenMS::Param::setMaxInt
void setMaxInt(const String &key, Int max)
Sets the maximum value for the integer or integer list parameter key.
OpenMS::TOPPViewBase::fileChanged_
void fileChanged_(const String &)
Called if a data file has been externally changed.
Definition: TOPPViewBase.cpp:3532
OpenMS::TOPPViewOpenDialog::disableCutoff
void disableCutoff(bool cutoff_on)
Disables cutoff section and sets the selected option.
OpenMS::QApplicationTOPP
Extension to the QApplication for running TOPPs GUI tools.
Definition: QApplicationTOPP.h:50
OpenMS::TOPPViewBase::enhancedWorkspaceWindowChanged
void enhancedWorkspaceWindowChanged(int id)
Raises the window corresponding to the data of the tab with identifier id.
Definition: TOPPViewBase.cpp:1226
OpenMS::FileTypes::INI
OpenMS parameters file (.ini)
Definition: FileTypes.h:69
OpenMS::Size
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
OpenMS::TOPPViewBase::group_unassigned_2d_
QActionGroup * group_unassigned_2d_
Definition: TOPPViewBase.h:479
OpenMS::AASequence::getMonoWeight
double getMonoWeight(Residue::ResidueType type=Residue::Full, Int charge=0) const
IdXMLFile.h
OpenMS::EnhancedWorkspace::dropReceived
void dropReceived(const QMimeData *data, QWidget *source, int id)
Signal that is emitted, when a drag-and-drop action ends on this widget.
FeatureXMLFile.h
OpenMS::DataValue::toString
String toString(bool full_precision=true) const
Conversion to String full_precision Controls number of fractional digits for all double types or list...
OpenMS::Spectrum2DWidget::canvas
Spectrum2DCanvas * canvas()
This method is overwritten to make the class specific members accessible.
Definition: Spectrum2DWidget.h:77
OpenMS::SpectrumCanvas::getVisibleArea
const AreaType & getVisibleArea() const
Returns the currently visible area.
Definition: SpectrumCanvas.h:310
OpenMS::LayerData::getFeatureMap
const FeatureMapSharedPtrType & getFeatureMap() const
Returns a const reference to the current feature data.
Definition: LayerData.h:189
OpenMS::DataFilters::DataFilter::op
FilterOperation op
Filter operation.
Definition: DataFilters.h:82
OpenMS::FileHandler::loadFeatures
bool loadFeatures(const String &filename, FeatureMap &map, FileTypes::Type force_type=FileTypes::UNKNOWN)
Loads a file into a FeatureMap.
OpenMS::DataFilters::add
void add(const DataFilter &filter)
Adds a filter.
OpenMS::TOPPViewBase::closeEvent
void closeEvent(QCloseEvent *event) override
Definition: TOPPViewBase.cpp:606
OpenMS::Spectrum2DWidget::toggleProjections
void toggleProjections()
Shows/hides the projections.
OpenMS::ParamXMLFile
The file pendant of the Param class used to load and store the param datastructure as paramXML.
Definition: ParamXMLFile.h:49
OpenMS::SpectrumCanvas::removeLayer
virtual void removeLayer(Size layer_index)=0
removes the layer with index layer_index
OpenMS::TOPPViewBase::setDrawMode1D
void setDrawMode1D(int)
Definition: TOPPViewBase.cpp:1355
OpenMS::Spectrum1DWidget::showCurrentPeaksAs2D
void showCurrentPeaksAs2D()
Requests to display the whole spectrum in 2D view.
OpenMS::TOPPViewBase::updateViewBar
void updateViewBar()
adapts view bar to the active window
Definition: TOPPViewBase.cpp:1637
OpenMS::TOPPViewOpenDialog::isCutoffEnabled
bool isCutoffEnabled() const
Returns if the low intensity peaks should be hidden.
OpenMS::TOPPViewBase::updateMenu
void updateMenu()
enabled/disabled menu entries depending on the current state
Definition: TOPPViewBase.cpp:3180
Spectrum3DWidget.h
OpenMS::String::prefix
String prefix(SizeType length) const
returns the prefix of length length
OpenMS::TOPPViewBase::layerContextMenu
void layerContextMenu(const QPoint &pos)
slot for layer manager context menu
Definition: TOPPViewBase.cpp:1748
Spectrum3DCanvas.h
OpenMS::TOPPViewBase::toggleProjections
void toggleProjections()
Definition: TOPPViewBase.cpp:2528
OpenMS::Internal::DIntervalBase::setMaxX
void setMaxX(CoordinateType const c)
Mutator for min_ coordinate of the larger point.
Definition: DIntervalBase.h:281
OpenMS::EnhancedTabBar::currentIdChanged
void currentIdChanged(int id)
Signal that indicates that the current tab changed.
OpenMS::Spectrum2DWidget::showCurrentPeaksAs3D
void showCurrentPeaksAs3D()
Requests to display all spectra as 1D.
OpenMS::DataFilters::DataFilter::value
double value
Value for comparison.
Definition: DataFilters.h:84
OpenMS::TOPPViewBase::getActiveSpectrumWidget
SpectrumWidget * getActiveSpectrumWidget() const
returns a pointer to the active SpectrumWidget (0 if none is active)
Definition: TOPPViewBase.cpp:2109
OpenMS::Spectrum1DCanvas::DM_PEAKS
draw data as peak
Definition: Spectrum1DCanvas.h:93
OpenMS::Param::getValue
const DataValue & getValue(const String &key) const
Returns a value of a parameter.
OpenMS::SpectrumAlignmentDialog::get1stLayerIndex
Int get1stLayerIndex()
Returns the index of the selected non-flipped layer.
OpenMS::FileTypes::MZIDENTML
mzIdentML (HUPO PSI AnalysisXML followup format) (.mzid)
Definition: FileTypes.h:77
OpenMS::TOPPViewBase::tool_bar_
QToolBar * tool_bar_
Definition: TOPPViewBase.h:459
OpenMS::LayerData::flipped
bool flipped
if this layer is flipped (1d mirror view)
Definition: LayerData.h:408
OpenMS::TOPPViewBase::ws_
EnhancedWorkspace ws_
Main workspace.
Definition: TOPPViewBase.h:487
OpenMS::TheoreticalSpectrumGenerator::getSpectrum
virtual void getSpectrum(PeakSpectrum &spec, const AASequence &peptide, Int min_charge, Int max_charge) const
Generates a spectrum for a peptide sequence, with the ion types that are set in the tool parameters.
OpenMS::TOPPViewBase::recent_files_
QStringList recent_files_
list of the recently opened files
Definition: TOPPViewBase.h:509
NASequence.h
OpenMS::File::remove
static bool remove(const String &file)
Removes a file (if it exists).
OpenMS::SpectrumCanvas::setLayerName
void setLayerName(Size i, const String &name)
Sets the name of layer i.
OpenMS::File::getUniqueName
static String getUniqueName(bool include_hostname=true)
Returns a string, consisting of date, time, hostname, process id, and a incrementing number....
OpenMS::TOPPViewBase::addData
void addData(FeatureMapSharedPtrType feature_map, ConsensusMapSharedPtrType consensus_map, std::vector< PeptideIdentification > &peptides, ExperimentSharedPtrType peak_map, ODExperimentSharedPtrType on_disc_peak_map, LayerData::DataType data_type, bool show_as_1d, bool show_options, bool as_new_window=true, const String &filename="", const String &caption="", UInt window_id=0, Size spectrum_id=0)
Adds a peak or feature map to the viewer.
Definition: TOPPViewBase.cpp:938
OpenMS::Internal::TOPPViewPrefDialog::setParam
void setParam(const Param &param)
initialize GUI values with these parameters
OpenMS::FileHandler::getOptions
PeakFileOptions & getOptions()
Mutable access to the options for loading/storing.
OpenMS::SpectrumCanvas::IntensityModes
IntensityModes
Display modes of intensity.
Definition: SpectrumCanvas.h:147
OpenMS::Internal::DIntervalBase::minY
CoordinateType minY() const
Accessor for max_ coordinate minimum.
Definition: DIntervalBase.h:249
OpenMS::Spectrum3DCanvas
Canvas for 3D-visualization of peak map data.
Definition: Spectrum3DCanvas.h:66
OpenMS::LayerData::I_LABELS
Identifications: Show labels (not sequences)
Definition: LayerData.h:112
OpenMS::FileTypes::UNKNOWN
Unknown file extension.
Definition: FileTypes.h:60
OpenMS::SpectrumWidget
Base class for spectrum widgets.
Definition: SpectrumWidget.h:80
QWidget
OpenMS::ToolsDialog::getOutput
String getOutput()
to get the parameter name for output. Empty if no output was selected.
OpenMS::TOPPViewBase::linkZoom
void linkZoom()
link the zoom of individual windows
Definition: TOPPViewBase.cpp:1869
OpenMS::TOPPViewBase::getActive1DWidget
Spectrum1DWidget * getActive1DWidget() const
returns a pointer to the active Spectrum1DWidget (0 the active window is no Spectrum1DWidget or there...
Definition: TOPPViewBase.cpp:2132
OpenMS::SpectrumCanvas::showGridLines
void showGridLines(bool show)
Whether or not to show grid lines.
GaussFilter.h
OpenMS::SpectraIdentificationViewWidget::getLayer
LayerData * getLayer()
QTabWidget
OpenMS::TOPPViewBase::layerVisibilityChange
void layerVisibilityChange(QListWidgetItem *item)
slot for layer manager visibility change (check box)
Definition: TOPPViewBase.cpp:1841
OpenMS::String::hasSubstring
bool hasSubstring(const String &string) const
true if String contains the string, false otherwise
OpenMS::Spectrum1DCanvas::getDrawMode
DrawModes getDrawMode() const
Returns the draw mode of the current layer.
OpenMS::SpectrumCanvas::layerActivated
void layerActivated(QWidget *w)
Signal emitted whenever a new layer is activated within the current window.
OpenMS::MSExperiment::size
Size size() const
Definition: MSExperiment.h:127
OpenMS::IDMapper::annotate
void annotate(PeakMap &map, const std::vector< PeptideIdentification > &peptide_ids, const std::vector< ProteinIdentification > &protein_ids, const bool clear_ids=false, const bool map_ms1=false)
Mapping method for peak maps.
OpenMS::LayerData::DT_FEATURE
Feature data.
Definition: LayerData.h:96
OpenMS::TOPPViewBase::layerSelectionChange
void layerSelectionChange(int)
slot for layer manager selection change
Definition: TOPPViewBase.cpp:1739
OpenMS::DefaultParamHandler
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
OpenMS::LayerData::L_INDEX
The element number is used.
Definition: LayerData.h:123
OpenMS::SpectrumCanvas::activeLayerIndex
Size activeLayerIndex() const
Returns the index of the active layer.
OpenMS::SpectrumCanvas::getCurrentLayer
const LayerData & getCurrentLayer() const
returns the layer data of the active layer
Definition: SpectrumCanvas.h:242
OpenMS::DateTime::now
static DateTime now()
Returns the current date and time.
OpenMS::SpectrumWidget::setWindowId
void setWindowId(Int window_id) override
setter for the EnhancedTabBar window id as defined in the interface
OpenMS::TOPPViewBase::dm_unassigned_2d_
QToolButton * dm_unassigned_2d_
Definition: TOPPViewBase.h:478
OpenMS::File::writable
static bool writable(const String &file)
Return true if the file is writable.
OpenMS::IdXMLFile::load
void load(const String &filename, std::vector< ProteinIdentification > &protein_ids, std::vector< PeptideIdentification > &peptide_ids)
Loads the identifications of an idXML file without identifier.
OpenMS::Exception::InvalidParameter
Exception indicating that an invalid parameter was handed over to an algorithm.
Definition: Exception.h:347
OpenMS::TOPPViewBase::filter_list_
FilterList * filter_list_
Definition: TOPPViewBase.h:439
Spectrum3DOpenGLCanvas.h
OpenMS::ToolsDialog::getTool
String getTool()
to get the currently selected tool-name
OpenMS::TOPPViewBase::closeByTab
void closeByTab(int id)
Closes the window corresponding to the data of the tab with identifier id.
Definition: TOPPViewBase.cpp:1215
OpenMS::TOPPViewBase::openRecentFile
void openRecentFile()
Opens a file from the recent files menu.
Definition: TOPPViewBase.cpp:1190
OpenMS::TOPPViewSpectraViewBehavior::deactivateBehavior
virtual void deactivateBehavior()
Slot for behavior deactivation.
OpenMS::RAIICleanup
Exception-safe way of executing arbitrary code at the end of a scope.
Definition: RAIICleanup.h:48
OpenMS::Precursor
Precursor meta information.
Definition: Precursor.h:57
ParamEditor.h
OpenMS::Spectrum1DWidget::performAlignment
void performAlignment(Size layer_index_1, Size layer_index_2, const Param &param)
Performs an alignment of the layers with layer_index_1 and layer_index_2.
FeatureFinder.h
print_usage
void print_usage()
Definition: TOPPView.cpp:84
OpenMS::Spectrum2DWidget::getHorizontalProjection
const Spectrum1DWidget * getHorizontalProjection() const
const reference to the horizontal projection
OpenMS::TOPPViewBase::metadataFileDialog
void metadataFileDialog()
dialog for inspecting database meta data
Definition: TOPPViewBase.cpp:3403
OpenMS::MzIdentMLFile
File adapter for MzIdentML files.
Definition: MzIdentMLFile.h:67
OpenMS::Param::ParamIterator
Forward const iterator for the Param class.
Definition: Param.h:197
OpenMS::LayerData::getPeakData
const ConstExperimentSharedPtrType getPeakData() const
Returns a const reference to the current in-memory peak data.
OpenMS::File::exists
static bool exists(const String &file)
Method used to test if a file exists.
OpenMS::TOPPViewOpenDialog::setMergeLayers
void setMergeLayers(const Map< Size, String > &layers)
Sets the possible merge layers (index and name) and activates the option.
OpenMS
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
OpenMS::TOPPViewBase::draw_group_1d_
QButtonGroup * draw_group_1d_
Definition: TOPPViewBase.h:466
OpenMS::DataValue::toBool
bool toBool() const
Conversion to bool.
OpenMS::TOPPViewBase::getActive2DWidget
Spectrum2DWidget * getActive2DWidget() const
returns a pointer to the active Spectrum2DWidget (0 the active window is no Spectrum2DWidget or there...
Definition: TOPPViewBase.cpp:2137
OpenMS::LayerData::DT_PEAK
Spectrum profile or centroided data.
Definition: LayerData.h:94
OpenMS::TOPPViewBase::layers_view_
QListWidget * layers_view_
Layer management widget.
Definition: TOPPViewBase.h:435
OpenMS::String::number
static String number(double d, UInt n)
returns a string for d with exactly n decimal places
OpenMS::MSExperiment::addSpectrum
void addSpectrum(const MSSpectrum &spectrum)
adds a spectrum to the list
OpenMS::SpectrumCanvas::getLayer
const LayerData & getLayer(Size index) const
returns the layer data with index index
Definition: SpectrumCanvas.h:235
OpenMS::TOPPViewSpectraViewBehavior
Behavior of TOPPView in spectra view mode.
Definition: TOPPViewSpectraViewBehavior.h:48
SavitzkyGolayFilter.h
OpenMS::TOPPViewBase::filter_dock_widget_
QDockWidget * filter_dock_widget_
Definition: TOPPViewBase.h:425
OpenMS::TOPPViewBase::add_2d_context_
QMenu * add_2d_context_
Additional context menu for 2D layers.
Definition: TOPPViewBase.h:554
OpenMS::SpectraIdentificationViewWidget::spectrumSelected
void spectrumSelected(int, int, int)
OpenMS::LayerData::F_UNASSIGNED
Features: Unassigned peptide hits.
Definition: LayerData.h:107
OpenMS::TOPPViewBase::showCurrentPeaksAs2D
void showCurrentPeaksAs2D()
Shows the current peak data of the active layer in 2D.
Definition: TOPPViewBase.cpp:2879
OpenMS::TOPPViewBase::recent_actions_
std::vector< QAction * > recent_actions_
list of the recently opened files actions (menu entries)
Definition: TOPPViewBase.h:511
OpenMS::SpectrumWidget::dropReceived
void dropReceived(const QMimeData *data, QWidget *source, int id)
Signal that is emitted, when a drag-and-drop action ends on this widget.
OpenMS::FileTypes::FEATUREXML
OpenMS feature file (.featureXML)
Definition: FileTypes.h:65
OpenMS::TOPPViewBase::changeLabel
void changeLabel(QAction *)
Definition: TOPPViewBase.cpp:1364
OpenMS::LayerData::DT_IDENT
Peptide identification data.
Definition: LayerData.h:98
OpenMS::SpectrumWidget::IM_ONEKZERO_AXIS_TITLE
static const char IM_ONEKZERO_AXIS_TITLE[]
Definition: SpectrumWidget.h:91
Spectrum1DWidget.h
OpenMS::LayerData::filename
String filename
file name of the file the data comes from (if available)
Definition: LayerData.h:417
OpenMS::SpectraIdentificationViewWidget::showSpectrumAs1D
void showSpectrumAs1D(int)
Spectrum1DCanvas.h
MetaDataBrowser.h
OpenMS::TOPPViewBase::updateRecentMenu_
void updateRecentMenu_()
update the recent files menu
Definition: TOPPViewBase.cpp:1166
OpenMS::TOPPViewBase::rt_label_
QLabel * rt_label_
RT label for messages in the status bar.
Definition: TOPPViewBase.h:499
OpenMS::TOPPViewOpenDialog::viewMapAs1D
bool viewMapAs1D() const
Returns true, if 1D mode is to be used for maps.
OpenMS::LayerData::remove_chromatogram_flag
void remove_chromatogram_flag()
remove the chromatogram flag
Definition: LayerData.h:381
OpenMS::TOPPViewBase::getCurrentLayer
const LayerData * getCurrentLayer() const
Returns the active Layer data (0 if no layer is active)
Definition: TOPPViewBase.cpp:2518
OpenMS::Param::exists
bool exists(const String &key) const
Tests if a parameter is set (expecting its fully qualified name, e.g., TextExporter:1:proteins_only)
OpenMS::TOPPViewBase::LogState
LogState
Log message states.
Definition: TOPPViewBase.h:544
OpenMS::TOPPViewBase::copyLayer
void copyLayer(const QMimeData *data, QWidget *source, int id=-1)
Slot for drag-and-drop of layer manager to tabbar.
Definition: TOPPViewBase.cpp:3436
OpenMS::TOPPViewBase::loadPreferences
void loadPreferences(String filename="")
Loads the preferences from the filename given.
Definition: TOPPViewBase.cpp:2147
OpenMS::SpectrumCanvas::setLayerFlag
void setLayerFlag(LayerData::Flags f, bool value)
sets a layer flag of the current layer
Definition: SpectrumCanvas.h:268
OpenMS::DataFilters::INTENSITY
Filter the intensity value.
Definition: DataFilters.h:58
OpenMS::TOPPViewBase::SpectrumType
ExperimentType::SpectrumType SpectrumType
Peak spectrum type.
Definition: TOPPViewBase.h:152
TOPPViewIdentificationViewBehavior.h
OpenMS::TOPPViewBase::initializeDefaultParameters_
void initializeDefaultParameters_()
Initializes the default parameters on TOPPView construction.
Definition: TOPPViewBase.cpp:566
OpenMS::StopWatch::getClockTime
double getClockTime() const
OpenMS::TOPPViewBase::views_dockwidget_
QDockWidget * views_dockwidget_
Definition: TOPPViewBase.h:424
OpenMS::LayerData::getCurrentSpectrum
const ExperimentType::SpectrumType & getCurrentSpectrum() const
Returns a const reference to the current spectrum (1D view)
OpenMS::QApplicationTOPP::showAboutDialog
static void showAboutDialog(QWidget *parent, const QString &toolname)
Show the About-Dialog with License and Citation for all GUI tools.
Definition: QApplicationTOPP.cpp:131
int
OpenMS::TOPPViewBase::ConsensusMapSharedPtrType
LayerData::ConsensusMapSharedPtrType ConsensusMapSharedPtrType
Definition: TOPPViewBase.h:143
OpenMS::LayerData
Class that stores the data for one layer.
Definition: LayerData.h:85
OpenMS::SpectrumCanvas::getVisibleConsensusData
void getVisibleConsensusData(ConsensusMapType &map) const
Fills the handed over map with the visible consensus features of the current layer.
OpenMS::Param::parseCommandLine
void parseCommandLine(const int argc, const char **argv, const String &prefix="")
Parses command line arguments.
OpenMS::Param::setMinInt
void setMinInt(const String &key, Int min)
Sets the minimum value for the integer or integer list parameter key.
OpenMS::FileHandler
Facilitates file handling by file type recognition.
Definition: FileHandler.h:62
OpenMS::SpectrumCanvas::IM_SNAP
Shows the maximum displayed intensity as if it was the overall maximum intensity.
Definition: SpectrumCanvas.h:151
Annotation1DTextItem.h
OpenMS::TOPPViewBase::dm_label_2d_
QToolButton * dm_label_2d_
Definition: TOPPViewBase.h:476
OpenMS::SpectraViewWidget::showSpectrumMetaData
void showSpectrumMetaData(int)
OpenMS::MetaDataBrowser::add
void add(PeakMap &exp)
Adds a peak map.
Definition: MetaDataBrowser.h:115
QProcess
OpenMS::OnDiscMSExperiment
Representation of a mass spectrometry experiment on disk.
Definition: OnDiscMSExperiment.h:68
OpenMS::FileHandler::loadExperiment
bool loadExperiment(const String &filename, MSExperiment &exp, FileTypes::Type force_type=FileTypes::UNKNOWN, ProgressLogger::LogType log=ProgressLogger::NONE, const bool rewrite_source_file=true, const bool compute_hash=true)
Loads a file into an MSExperiment.
OpenMS::FeatureXMLFile::load
void load(const String &filename, FeatureMap &feature_map)
loads the file with name filename into map and calls updateRanges().
OpenMS::Internal::IndexedMzMLHandler::getNrChromatograms
size_t getNrChromatograms() const
Returns the number of chromatograms available.
OpenMS::FileTypes::Type
Type
Actual file types enum.
Definition: FileTypes.h:58
OpenMS::Exception::UnableToCreateFile
Unable to create file exception.
Definition: Exception.h:636
OpenMS::TOPPViewOpenDialog::openAsNewWindow
bool openAsNewWindow() const
Returns true, if the data should be opened in a new window.
OpenMS::TOPPViewBase::layerEdit
void layerEdit(QListWidgetItem *)
slot for editing the preferences of the current layer
Definition: TOPPViewBase.cpp:1816
OpenMS::LayerData::getConsensusMap
const ConsensusMapSharedPtrType & getConsensusMap() const
Returns a const reference to the consensus feature data.
Definition: LayerData.h:201
OpenMS::Spectrum1DWidget::showCurrentPeaksAs3D
void showCurrentPeaksAs3D()
Requests to display the whole spectrum in 3D view.
OpenMS::SpectrumWidget::canvas
SpectrumCanvas * canvas()
Returns a pointer to canvas object.
Definition: SpectrumWidget.h:115
OpenMS::TOPPViewBase::layerZoomChanged
void layerZoomChanged()
gets called when a layer changes in zoom
Definition: TOPPViewBase.cpp:1891
OpenMS::TOPPViewBase::dm_hulls_2d_
QAction * dm_hulls_2d_
Definition: TOPPViewBase.h:475
OpenMS::TOPPViewBase::tool_bar_1d_
QToolBar * tool_bar_1d_
Definition: TOPPViewBase.h:465
OpenMS::SpectrumWidget::showGoToDialog
virtual void showGoToDialog()=0
Shows a goto dialog.
OpenMS::TOPPViewBase::message_label_
QLabel * message_label_
Label for messages in the status bar.
Definition: TOPPViewBase.h:495
OpenMS::TOPPViewBase::dm_precursors_2d_
QAction * dm_precursors_2d_
Definition: TOPPViewBase.h:473
OpenMS::StopWatch::start
void start()
Start the stop watch.
OpenMS::LayerData::I_PEPTIDEMZ
Identifications: m/z source.
Definition: LayerData.h:111
OpenMS::Spectrum1DCanvas::getAlignmentScore
double getAlignmentScore()
Returns the score of the alignment.
OpenMS::LayerData::getPeakDataMuteable
const ExperimentSharedPtrType & getPeakDataMuteable()
Returns a mutable reference to the current in-memory peak data.
Definition: LayerData.h:232
OpenMS::TOPPViewBase::spectraview_behavior_
TOPPViewSpectraViewBehavior spectraview_behavior_
TOPPView behavior for the spectra view.
Definition: TOPPViewBase.h:569
OpenMS::TOPPViewBase::ExperimentType
LayerData::ExperimentType ExperimentType
Definition: TOPPViewBase.h:146
GUIHelpers.h
OpenMS::FileHandler::getType
static FileTypes::Type getType(const String &filename)
Tries to determine the file type (by name or content)
OpenMS::Param::size
Size size() const
Returns the number of entries (leafs).
OpenMS::SpectrumCanvas::addLayer
bool addLayer(ExperimentSharedPtrType map, ODExperimentSharedPtrType od_map, const String &filename="")
Add a peak data layer.
OpenMS::TOPPViewBase::ExperimentSharedPtrType
LayerData::ExperimentSharedPtrType ExperimentSharedPtrType
Definition: TOPPViewBase.h:148
OpenMS::LayerData::C_ELEMENTS
Consensus features: Show elements.
Definition: LayerData.h:110
SpectraIdentificationViewWidget.h
OpenMS::DateTime::getTime
void getTime(UInt &hour, UInt &minute, UInt &second) const
Fills the arguments with the time.
MultiGradientSelector.h
OpenMS::TOPPViewBase::tool_bar_2d_cons_
QToolBar * tool_bar_2d_cons_
Definition: TOPPViewBase.h:471
OpenMS::TOPPViewBase::getActiveCanvas
SpectrumCanvas * getActiveCanvas() const
returns a pointer to the active SpectrumCanvas (0 if none is active)
Definition: TOPPViewBase.cpp:2118
OpenMS::Internal::IndexedMzMLHandler::openFile
void openFile(String filename)
Open a file.
OpenMS::Exception::BaseException
Exception base class.
Definition: Exception.h:89
OpenMS::SpectrumSettings::setPrecursors
void setPrecursors(const std::vector< Precursor > &precursors)
sets the precursors
OpenMS::EnhancedTabBar::setCurrentId
void setCurrentId(int id)
Selects the tab with identifier id.
OpenMS::TOPPViewBase::ConsensusMapType
LayerData::ConsensusMapType ConsensusMapType
Definition: TOPPViewBase.h:141
OpenMS::LayerData::getCurrentSpectrumIndex
Size getCurrentSpectrumIndex() const
Get the index of the current spectrum (1D view)
Definition: LayerData.h:320
OpenMS::StopWatch::stop
void stop()
Stop the stop watch (can be resumed later). If the stop watch was not running an exception is thrown.
TOPPViewSpectraViewBehavior.h
OpenMS::SpectrumCanvas::updateLayer
virtual void updateLayer(Size i)=0
Updates layer i when the data in the corresponding file changes.
OpenMS::DefaultParamHandler::setParameters
void setParameters(const Param &param)
Sets the parameters.
OpenMS::MSSpectrum::setMSLevel
void setMSLevel(UInt ms_level)
Sets the MS level.
OpenMS::Internal::DIntervalBase::setMinX
void setMinX(CoordinateType const c)
Mutator for min_ coordinate of the smaller point.
Definition: DIntervalBase.h:267
OpenMS::DefaultParamHandler::getDefaults
const Param & getDefaults() const
Non-mutable access to the default parameters.
OpenMS::TOPPViewBase::linkZoom_action_
QAction * linkZoom_action_
Definition: TOPPViewBase.h:451
OpenMS::TOPPViewBase::window_
EnhancedTabBarWidgetInterface * window_(int id) const
Returns the enhanced tabbar widget with id id.
Definition: TOPPViewBase.cpp:1201
OpenMS::String::toQString
QString toQString() const
Conversion to Qt QString.
OpenMS::TOPPViewBase::showCurrentPeaksAs3D
void showCurrentPeaksAs3D()
Shows the current peak data of the active layer in 3D.
Definition: TOPPViewBase.cpp:3060
OpenMS::String::hasSuffix
bool hasSuffix(const String &string) const
true if String ends with string, false otherwise
OpenMS::LayerData::visible
bool visible
if this layer is visible
Definition: LayerData.h:405
OpenMS::TOPPViewBase::layerDeactivated
void layerDeactivated()
gets called if a layer got deactivated
Definition: TOPPViewBase.cpp:2023
OpenMS::File::path
static String path(const String &file)
Returns the path of the file (without the file name).
OpenMS::EnhancedTabBar
Convenience tab bar implementation.
Definition: EnhancedTabBar.h:60
OpenMS::VersionInfo::getVersion
static String getVersion()
Return the version number of OpenMS.
OpenMS::DefaultParamHandler::getParameters
const Param & getParameters() const
Non-mutable access to the parameters.
OpenMS::SpectrumCanvas::layerZoomChanged
void layerZoomChanged(QWidget *w)
Signal emitted whenever the zoom changed.
OpenMS::SpectrumCanvas::setCurrentLayerParameters
void setCurrentLayerParameters(const Param &param)
Sets the parameters of the current layer.
Definition: SpectrumCanvas.h:470
OpenMS::Exception::NotImplemented
Not implemented exception.
Definition: Exception.h:436
OpenMS::MSExperiment::empty
bool empty() const
Definition: MSExperiment.h:137
OpenMS::LayerData::chromatogram_flag_set
bool chromatogram_flag_set() const
Check whether the current layer is a chromatogram.
Definition: LayerData.h:367
OpenMS::TOPPViewBase::showPreferences
void showPreferences()
Shows current layer preferences.
Definition: TOPPViewBase.cpp:3398
OpenMS::PeakMap
MSExperiment PeakMap
Two-dimensional map of raw data points or peaks.
Definition: StandardTypes.h:61
OpenMS::TOPPViewBase::toggleGridLines
void toggleGridLines()
Toggles the grid lines.
Definition: TOPPViewBase.cpp:3381
OpenMS::SpectrumCanvas::saveCurrentLayer
virtual void saveCurrentLayer(bool visible)=0
Saves the current layer data.
OpenMS::SpectraViewWidget::getComboBox
QComboBox * getComboBox()
OpenMS::Spectrum1DCanvas::DrawModes
DrawModes
Enumerate all available paint styles.
Definition: Spectrum1DCanvas.h:91
OpenMS::Internal::FilterList::filterChanged
void filterChanged(const DataFilters &filters)
emitted when the user has edited/added/removed a filter
OpenMS::TOPPViewBase::spectra_identification_view_widget_
SpectraIdentificationViewWidget * spectra_identification_view_widget_
Definition: TOPPViewBase.h:431
OpenMS::SpectrumCanvas::IM_NONE
Normal mode: f(x)=x.
Definition: SpectrumCanvas.h:149
OpenMS::SpectraViewWidget::getTreeWidget
QTreeWidget * getTreeWidget()
FilterList.h
OpenMS::SpectrumCanvas::getIntensityMode
IntensityModes getIntensityMode() const
Returns the intensity mode.
Definition: SpectrumCanvas.h:204
OpenMS::SpectraIdentificationViewWidget::requestVisibleArea1D
void requestVisibleArea1D(double, double)
OpenMS::ConsensusMap
A container for consensus elements.
Definition: ConsensusMap.h:80
OpenMS::Spectrum2DCanvas::mergeIntoLayer
void mergeIntoLayer(Size i, FeatureMapSharedPtrType map)
Merges the features in map into the features layer i.
QMainWindow
OpenMS::StringList
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
OpenMS::FeatureXMLFile::store
void store(const String &filename, const FeatureMap &feature_map)
stores the map feature_map in file with name filename.
OpenMS::Spectrum2DWidget
Widget for 2D-visualization of peak map and feature map data.
Definition: Spectrum2DWidget.h:63
OpenMS::SpectrumAlignmentDialog
Lets the user select two spectra and set the parameters for the spectrum alignment.
Definition: SpectrumAlignmentDialog.h:56
OpenMS::ConsensusXMLFile::load
void load(const String &filename, ConsensusMap &map)
Loads a consensus map from file and calls updateRanges.
OpenMS::UInt
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
OpenMS::SpectraViewWidget::updateEntries
void updateEntries(const LayerData &cl)
OpenMS::MSSpectrum::getFloatDataArrays
const FloatDataArrays & getFloatDataArrays() const
Returns a const reference to the float meta data arrays.
OpenMS::TOPPViewOpenDialog::disableLocation
void disableLocation(bool window)
Disables opening location section and sets the selected option.
OpenMS::TOPPViewBase::showGoToDialog
void showGoToDialog()
shows the DB dialog for opening files
Definition: TOPPViewBase.cpp:2095
OpenMS::TOPPViewBase::savePreferences
void savePreferences()
Stores the preferences (used when this window is closed)
Definition: TOPPViewBase.cpp:2216
OpenMS::TOPPViewBase::updateProcessLog
void updateProcessLog()
Appends process output to log window.
Definition: TOPPViewBase.cpp:3144
OpenMS::TOPPViewBase::showSpectrumAs1D
void showSpectrumAs1D(int index)
Shows the spectrum with index index of the active layer in 1D.
Definition: TOPPViewBase.cpp:2827
OpenMS::StopWatch
This class is used to determine the current process' CPU (user and/or kernel) and wall time.
Definition: StopWatch.h:65
OpenMS::MzIdentMLFile::load
void load(const String &filename, std::vector< ProteinIdentification > &poid, std::vector< PeptideIdentification > &peid)
Loads the identifications from a MzIdentML file.
OpenMS::TOPPViewBase::projections_2d_
QAction * projections_2d_
Definition: TOPPViewBase.h:481
Annotation1DPeakItem.h
OpenMS::TOPPViewBase::ODExperimentSharedPtrType
LayerData::ODExperimentSharedPtrType ODExperimentSharedPtrType
Definition: TOPPViewBase.h:150
IDMapper.h
OpenMS::TOPPViewBase::getFileList_
QStringList getFileList_(const String &path_overwrite="")
Shows a dialog where the user can select files.
Definition: TOPPViewBase.cpp:2240
Precursor.h
OpenMS::MetaDataBrowser
A meta data visualization widget.
Definition: MetaDataBrowser.h:104
OpenMS::TOPPViewBase::getSpectraIdentificationViewWidget
SpectraIdentificationViewWidget * getSpectraIdentificationViewWidget()
returns a pointer to the SpectraIdentificationViewWidget
Definition: TOPPViewBase.cpp:3426
OpenMS::SpectrumAlignmentDialog::isPPM
bool isPPM() const
OpenMS::FileWatcher::fileChanged
void fileChanged(const String &)
Delayed file change signal.
OpenMS::Internal::DIntervalBase::maxY
CoordinateType maxY() const
Accessor for max_ coordinate maximum.
Definition: DIntervalBase.h:261
Residue.h
OpenMS::TOPPViewBase::viewTabwidgetDoubleClicked
void viewTabwidgetDoubleClicked(int)
adds empty ID structure to allow manual annotations
Definition: TOPPViewBase.cpp:1714
OpenMS::TOPPViewBase::showCursorStatus
void showCursorStatus(double mz, double rt)
shows m/z and rt in the status bar
Definition: TOPPViewBase.cpp:1305
MSExperiment.h
OpenMS::TOPPViewIdentificationViewBehavior
Behavior of TOPPView in identification mode.
Definition: TOPPViewIdentificationViewBehavior.h:49
OpenMS::LayerData::param
Param param
Layer parameters.
Definition: LayerData.h:423
OpenMS::Internal::TOPPViewPrefDialog::getParam
Param getParam() const
FilterList
OpenMS::Internal::FilterList FilterList
Definition: FilterList.h:94
OpenMS::LayerData::F_HULLS
Features: Convex hulls of single mass traces.
Definition: LayerData.h:106
OpenMS::Spectrum1DWidget::showCurrentPeaksAsIonMobility
void showCurrentPeaksAsIonMobility()
Requests to display the whole spectrum in ion mobility view.
OpenMS::TOPPViewBase::tool_bar_2d_feat_
QToolBar * tool_bar_2d_feat_
Definition: TOPPViewBase.h:470
OpenMS::TOPPViewBase::addDataFile
void addDataFile(const String &filename, bool show_options, bool add_to_recent, String caption="", UInt window_id=0, Size spectrum_id=0)
Opens and displays data from a file.
Definition: TOPPViewBase.cpp:698
OpenMS::TOPPViewBase::showSpectrumMetaData
void showSpectrumMetaData(int spectrum_index)
shows the spectrum metadata
Definition: TOPPViewBase.cpp:3431
OpenMS::Param::setSectionDescription
void setSectionDescription(const String &key, const String &description)
Sets a description for an existing section.
OpenMS::ToolsDialog
TOPP tool selection dialog.
Definition: ToolsDialog.h:69
OpenMS::TheoreticalSpectrumGenerator
Generates theoretical spectra for peptides with various options.
Definition: TheoreticalSpectrumGenerator.h:68
OpenMS::SpectrumWidget::xAxis
virtual AxisWidget * xAxis()
Returns a pointer to the x-axis axis widget.
Definition: SpectrumWidget.h:126
TOPPViewPrefDialog.h
FileWatcher.h
OpenMS::SpectrumCanvas::getLayerFlag
bool getLayerFlag(LayerData::Flags f) const
returns a layer flag of the current layer
Definition: SpectrumCanvas.h:262
OpenMS::Param::end
ParamIterator end() const
End iterator for the internal tree.
OpenMS::File::absolutePath
static String absolutePath(const String &file)
Replaces the relative path in the argument with the absolute path.
OpenMS::Param::begin
ParamIterator begin() const
Begin iterator for the internal tree.
OpenMS::FeatureMap
A container for features.
Definition: FeatureMap.h:97
OpenMS::EnhancedTabBar::aboutToCloseId
void aboutToCloseId(int id)
Signal that indicates that the tab with identifier id is about to be removed (double click or context...
OpenMS::TOPPViewBase::toggleAxisLegends
void toggleAxisLegends()
Toggles the axis legends.
Definition: TOPPViewBase.cpp:3386
OpenMS::Exception::ParseError
Parse Error exception.
Definition: Exception.h:622
OpenMS::DataFilters
DataFilter array providing some convenience functions.
Definition: DataFilters.h:50
AASequence.h
OpenMS::LayerData::isIonMobilityData
bool isIonMobilityData() const
Check whether the current layer should be represented as ion mobility.
Definition: LayerData.h:333
OpenMS::SpectraIdentificationViewWidget::spectrumDeselected
void spectrumDeselected(int)
OpenMS::Spectrum1DCanvas::getAlignmentSize
Size getAlignmentSize()
Returns the number of aligned pairs of peaks.
OpenMS::TOPPViewBase::tool_bar_2d_ident_
QToolBar * tool_bar_2d_ident_
Definition: TOPPViewBase.h:472
OpenMS::TOPPViewBase::showCurrentPeaksAsIonMobility
void showCurrentPeaksAsIonMobility()
Shows the current peak data of the active layer as ion mobility.
Definition: TOPPViewBase.cpp:2905
OpenMS::TOPPViewBase::openFileDialog
void openFileDialog(const String &initial_directory="")
shows the file dialog for opening files (a starting directory, e.g. for the example files can be prov...
Definition: TOPPViewBase.cpp:2271
OpenMS::TOPPViewBase::loadFiles
void loadFiles(const StringList &list, QSplashScreen *splash_screen)
Opens all the files in the string list.
Definition: TOPPViewBase.cpp:3265
OpenMS::Spectrum1DCanvas::activateSpectrum
void activateSpectrum(Size index, bool repaint=true)
Sets current spectrum index of current layer to index.
OpenMS::FileWatcher
Watcher that monitors file changes.
Definition: FileWatcher.h:65
OpenMS::SpectrumCanvas::preferencesChange
void preferencesChange()
Emitted when the layer preferences have changed.
OpenMS::MSExperiment::end
Iterator end()
Definition: MSExperiment.h:167
OpenMS::Spectrum1DCanvas::DM_CONNECTEDLINES
draw as connected lines
Definition: Spectrum1DCanvas.h:94
OpenMS::TOPPViewBase::showSpectrumGenerationDialog
void showSpectrumGenerationDialog()
Shows the theoretical spectrum generation dialog.
Definition: TOPPViewBase.cpp:2695
OpenMS::SpectrumWidget::setIntensityMode
void setIntensityMode(SpectrumCanvas::IntensityModes mode)
Sets the intensity mode of the SpectrumCanvas.
OpenMS::TOPPViewBase::dm_ident_2d_
QAction * dm_ident_2d_
Definition: TOPPViewBase.h:482
OpenMS::Spectrum2DCanvas
Canvas for 2D-visualization of peak map, feature map and consensus map data.
Definition: Spectrum2DCanvas.h:70
OpenMS::TOPPViewIdentificationViewBehavior::deactivate1DSpectrum
virtual void deactivate1DSpectrum(int index)
Behavior for deactivate1DSpectrum.
OpenMS::SpectrumCanvas::activateLayer
virtual void activateLayer(Size layer_index)=0
change the active layer (the one that is used for selecting and so on)
PeakPickerCWT.h
OpenMS::TOPPViewBase::getActive3DWidget
Spectrum3DWidget * getActive3DWidget() const
returns a pointer to the active Spectrum3DWidget (0 the active window is no Spectrum2DWidget or there...
Definition: TOPPViewBase.cpp:2142
OpenMS::TOPPViewBase::showTOPPDialog_
void showTOPPDialog_(bool visible)
Apply TOPP tool. If visible is true, only the visible data is used, otherwise the whole layer is used...
Definition: TOPPViewBase.cpp:2298
OpenMS::TOPPViewBase::topp_
struct OpenMS::TOPPViewBase::@21 topp_
Information needed for execution of TOPP tools.
OpenMS::TOPPViewIdentificationViewBehavior::deactivateBehavior
virtual void deactivateBehavior()
Slot for behavior deactivation.
OpenMS::File::getOpenMSDataPath
static String getOpenMSDataPath()
Returns the OpenMS data path (environment variable overwrites the default installation path)
OpenMS::TOPPViewBase::getFilenamesOfOpenFiles_
std::set< String > getFilenamesOfOpenFiles_()
unique list of files referenced by all layers
Definition: TOPPViewBase.cpp:675
OpenMS::TOPPViewBase::updateLayerBar
void updateLayerBar()
adapts the layer bar to the active window
Definition: TOPPViewBase.cpp:1575
OpenMS::TOPPViewBase::showTOPPDialog
void showTOPPDialog()
Apply TOPP tool.
Definition: TOPPViewBase.cpp:2292
OpenMS::EnhancedTabBar::dropOnTab
void dropOnTab(const QMimeData *data, QWidget *source, int id)
Signal that is emitted, when a drag-and-drop action ends on a tab.
OpenMS::FeatureXMLFile
This class provides Input/Output functionality for feature maps.
Definition: FeatureXMLFile.h:68
OpenMS::File::readable
static bool readable(const String &file)
Return true if the file exists and is readable.
OpenMS::TOPPViewBase::updateBarsAndMenus
void updateBarsAndMenus()
calls update*Bar and updateMenu_() to make sure the interface matches the current data
Definition: TOPPViewBase.cpp:1474
OpenMS::SpectrumCanvas::getCurrentLayerIndex
Size getCurrentLayerIndex() const
returns the index of the active layer
Definition: SpectrumCanvas.h:249
OpenMS::TOPPViewBase::getSpectrumParameters
Param getSpectrumParameters(UInt dim)
Returns the parameters for a SpectrumCanvas of dimension dim.
Definition: TOPPViewBase.cpp:3155
OpenMS::TOPPViewBase::preferencesDialog
void preferencesDialog()
shows the preferences dialog
Definition: TOPPViewBase.cpp:660
OpenMS::TOPPViewBase::tool_bar_2d_peak_
QToolBar * tool_bar_2d_peak_
Definition: TOPPViewBase.h:469
OpenMS::TOPPViewBase::updateFilterBar
void updateFilterBar()
adapts the filter bar to the active window
Definition: TOPPViewBase.cpp:1821
OpenMS::Spectrum1DCanvas::flippedLayersExist
bool flippedLayersExist()
Returns whether flipped layers exist or not.
OpenMS::TOPPViewBase::changeUnassigned
void changeUnassigned(QAction *)
Definition: TOPPViewBase.cpp:1396
OpenMS::LayerData::label
LabelType label
Label type.
Definition: LayerData.h:444
OpenMS::EnhancedTabBar::dropOnWidget
void dropOnWidget(const QMimeData *data, QWidget *source)
Signal that is emitted, when a drag-and-drop action ends on the unused space on the right side of the...
OpenMS::LayerData::SIZE_OF_LABEL_TYPE
Definition: LayerData.h:127
MorphologicalFilter.h
OpenMS::LayerData::DataType
DataType
Definition: LayerData.h:92
OpenMS::TOPPViewBase::LS_NOTICE
Notice.
Definition: TOPPViewBase.h:546
OpenMS::TheoreticalSpectrumGenerationDialog::getParam
Param getParam() const
OpenMS::DefaultParamHandler::defaults_
Param defaults_
Container for default parameters. This member should be filled in the constructor of derived classes!
Definition: DefaultParamHandler.h:169
OpenMS::FileHandler::stripExtension
static String stripExtension(const String &filename)
If filename contains an extension, it will be removed (including the '.'). Special extensions,...
OpenMS::SpectrumWidget::sendCursorStatus
void sendCursorStatus(double mz=-1.0, double rt=-1.0)
Emitted when the cursor position changes (for displaying e.g. in status bar)
OpenMS::Internal::DIntervalBase::maxX
CoordinateType maxX() const
Accessor for min_ coordinate maximum.
Definition: DIntervalBase.h:255
OpenMS::Exception::BaseException::getFile
const char * getFile() const noexcept
Returns the file where it occurred.
OpenMS::TOPPViewBase::updateCurrentPath
void updateCurrentPath()
changes the current path according to the currently active window/layer
Definition: TOPPViewBase.cpp:3508
OpenMS::DefaultParamHandler::defaultsToParam_
void defaultsToParam_()
Updates the parameters after the defaults have been set in the constructor.
OpenMS::TOPPViewBase::dm_elements_2d_
QAction * dm_elements_2d_
Definition: TOPPViewBase.h:480
OpenMS::Spectrum1DCanvas::setMirrorModeActive
void setMirrorModeActive(bool b)
Sets whether this widget is currently in mirror mode.
OpenMS::ProgressLogger::GUI
Progress dialog.
Definition: ProgressLogger.h:73
OpenMS::Internal::FilterList
A widget which shows a list of DataFilter items.
Definition: FilterList.h:60
OpenMS::SpectrumCanvas::getVisiblePeakData
void getVisiblePeakData(ExperimentType &map) const
Fills the handed over map with the visible peaks of the current layer.
OpenMS::Param
Management and storage of parameters / INI files.
Definition: Param.h:73
TOPPViewOpenDialog.h
OpenMS::TOPPViewBase::saveLayerAll
void saveLayerAll()
Saves the whole current layer data.
Definition: TOPPViewBase.cpp:3371
QTreeWidget
OpenMS::EnhancedTabBarWidgetInterface::getWindowId
virtual Int getWindowId()=0
get the EnhancedTabBar unique window id
OpenMS::TOPPViewBase::annotateWithID
void annotateWithID()
Annotates current layer with ID data.
Definition: TOPPViewBase.cpp:2570
OpenMS::TOPPViewBase::layer_dock_widget_
QDockWidget * layer_dock_widget_
Definition: TOPPViewBase.h:423
OpenMS::AASequence
Representation of a peptide/protein sequence.
Definition: AASequence.h:111
OpenMS::DataFilters::GREATER_EQUAL
Greater than the value or equal to the value.
Definition: DataFilters.h:67
OpenMS::Internal::IndexedMzMLHandler::getNrSpectra
size_t getNrSpectra() const
Returns the number of spectra available.
OpenMS::TOPPViewBase::layerStatistics
void layerStatistics()
Shows statistics (count,min,max,avg) about Intensity, Quality, Charge and meta data.
Definition: TOPPViewBase.cpp:1281
OpenMS::SpectrumCanvas
Base class for visualization canvas classes.
Definition: SpectrumCanvas.h:98
OpenMS::Exception::BaseException::what
const char * what() const noexcept override
Returns the error message of the exception.
OpenMS::TOPPViewBase::LS_WARNING
Warning.
Definition: TOPPViewBase.h:547
OpenMS::TOPPViewBase::watcher_
FileWatcher * watcher_
Watcher that tracks file changes (in order to update the data in the different views)
Definition: TOPPViewBase.h:443
SpectraViewWidget.h
OpenMS::ParamXMLFile::store
void store(const String &filename, const Param &param) const
Write XML file.
Spectrum2DWidget.h
OpenMS::Internal::FilterList::set
void set(const DataFilters &filters)
OpenMS::Spectrum1DCanvas::setDrawMode
void setDrawMode(DrawModes mode)
Sets draw mode of the current layer.
Spectrum2DCanvas.h
OpenMS::AASequence::fromString
static AASequence fromString(const String &s, bool permissive=true)
create AASequence object by parsing an OpenMS string
OpenMS::Map
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:50
TheoreticalSpectrumGenerator.h
OpenMS::TOPPViewBase::showSpectrumAlignmentDialog
void showSpectrumAlignmentDialog()
Shows the spectrum alignment dialog.
Definition: TOPPViewBase.cpp:2790
OpenMS::Precursor::setCharge
void setCharge(Int charge)
Mutable access to the charge.
OpenMS::Internal::TOPPViewPrefDialog
Preferences dialog for TOPPView.
Definition: TOPPViewPrefDialog.h:58
OpenMS::Exception::MissingInformation
Not all required information provided.
Definition: Exception.h:195
ToolsDialog.h
OpenMS::TOPPViewBase::finishTOPPToolExecution
void finishTOPPToolExecution(int exitCode, QProcess::ExitStatus exitStatus)
slot for the finished signal of the TOPP tools execution
Definition: TOPPViewBase.cpp:2477
OpenMS::SpectraIdentificationViewWidget::setLayer
void setLayer(LayerData *model)
set / get layer data
OPENMS_LOG_INFO
#define OPENMS_LOG_INFO
Macro if a information, e.g. a status should be reported.
Definition: LogStream.h:465
OpenMS::TOPPViewBase::annotateMS1FromMassFingerprinting_
bool annotateMS1FromMassFingerprinting_(const FeatureMap &identifications)
Definition: TOPPViewBase.cpp:2551
OpenMS::TOPPViewBase::updateTabBar
void updateTabBar(QMdiSubWindow *w)
brings the tab corresponding to the active window in front
Definition: TOPPViewBase.cpp:1858
OpenMS::SpectrumWidget::showLegend
virtual void showLegend(bool show)
Shows/hides axis labels.
main
int main(int argc, const char **argv)
Definition: TOPPView.cpp:108
OpenMS::LayerData::type
DataType type
data type (peak or feature data)
Definition: LayerData.h:411
OpenMS::Spectrum1DCanvas::flipLayer
void flipLayer(Size index)
Flips the layer with index up/downwards.
OpenMS::EnhancedWorkspace::tileHorizontal
void tileHorizontal()
arrange all windows horizontally
QApplicationTOPP.h
OpenMS::TheoreticalSpectrumGenerationDialog
Dialog which allows to enter an AA sequence and generates a theoretical spectrum for it.
Definition: TheoreticalSpectrumGenerationDialog.h:55
OpenMS::SpectraViewWidget
Hierarchical visualization and selection of spectra.
Definition: SpectraViewWidget.h:51
OpenMS::SpectrumCanvas::ODExperimentSharedPtrType
LayerData::ODExperimentSharedPtrType ODExperimentSharedPtrType
Definition: SpectrumCanvas.h:113
IndexedMzMLHandler.h
OpenMS::SpectrumWidget::IM_MS_AXIS_TITLE
static const char IM_MS_AXIS_TITLE[]
Definition: SpectrumWidget.h:90
OpenMS::MSSpectrum::ConstIterator
ContainerType::const_iterator ConstIterator
Non-mutable iterator.
Definition: MSSpectrum.h:128
OpenMS::Exception::FileEmpty
File is empty.
Definition: Exception.h:594
OpenMS::EnhancedTabBar::removeId
void removeId(int id)
Remove the tab with identifier id.
OpenMS::AxisWidget::setLegend
void setLegend(const String &legend)
sets the legend text
OpenMS::Spectrum3DCanvas::openglwidget
Spectrum3DOpenGLCanvas * openglwidget()
returns the Spectrum3DOpenGLcanvas
OpenMS::LayerData::LabelType
LabelType
Label used in visualization.
Definition: LayerData.h:120
OpenMS::ParamXMLFile::load
void load(const String &filename, Param &param)
Read XML file.
OpenMS::TOPPViewBase::~TOPPViewBase
~TOPPViewBase() override
Destructor.
Definition: TOPPViewBase.cpp:3689
OpenMS::TOPPViewBase::showSpectrumWidgetInWindow
void showSpectrumWidgetInWindow(SpectrumWidget *sw, const String &caption)
Opens the provided spectrum widget in a new window.
Definition: TOPPViewBase.cpp:2028
OpenMS::IDMapper
Annotates an MSExperiment, FeatureMap or ConsensusMap with peptide identifications.
Definition: IDMapper.h:66
OpenMS::MSSpectrum
The representation of a 1D spectrum.
Definition: MSSpectrum.h:67
OpenMS::TOPPViewBase::showCurrentPeaksAsDIA
void showCurrentPeaksAsDIA()
Shows the current peak data of the active layer as DIA data.
Definition: TOPPViewBase.cpp:2976
OpenMS::TOPPViewBase::layerActivated
void layerActivated()
gets called if a layer got activated
Definition: TOPPViewBase.cpp:1882
OpenMS::TOPPViewBase::updateToolBar
void updateToolBar()
updates the toolbar
Definition: TOPPViewBase.cpp:1481
OpenMS::TOPPViewBase::saveLayerVisible
void saveLayerVisible()
Saves the visible layer data.
Definition: TOPPViewBase.cpp:3376
OpenMS::TOPPViewSpectraViewBehavior::showSpectrumAs1D
virtual void showSpectrumAs1D(int index)
Behavior for showSpectrumAs1D.
OpenMS::DefaultParamHandler::subsections_
std::vector< String > subsections_
Container for registered subsections. This member should be filled in the constructor of derived clas...
Definition: DefaultParamHandler.h:176
OnDiscMSExperiment.h
OpenMS::TOPPViewBase::closeFile
void closeFile()
closes the active window
Definition: TOPPViewBase.cpp:1261
OpenMS::TOPPViewBase::watcher_msgbox_
bool watcher_msgbox_
Holds the messageboxes for each layer that are currently popped up (to avoid popping them up again,...
Definition: TOPPViewBase.h:446
OpenMS::LayerData::F_HULL
Features: Overall convex hull.
Definition: LayerData.h:105
OpenMS::LayerData::ODExperimentSharedPtrType
boost::shared_ptr< OnDiscMSExperiment > ODExperimentSharedPtrType
SharedPtr on On-Disc MSExperiment.
Definition: LayerData.h:154
OpenMS::TOPPViewSpectraViewBehavior::activateBehavior
virtual void activateBehavior()
Slot for behavior activation.
OpenMS::Exception::FileNotReadable
File not readable exception.
Definition: Exception.h:537
OpenMS::SpectrumCanvas::showCurrentLayerPreferences
virtual void showCurrentLayerPreferences()=0
Shows the preferences dialog of the active layer.
OpenMS::SpectrumAlignmentDialog::getTolerance
double getTolerance() const
OpenMS::Param::insert
void insert(const String &prefix, const Param &param)
OpenMS::TOPPViewBase::loadFile
void loadFile(QString)
Loads a file given by the passed string.
Definition: TOPPViewBase.cpp:2546
SpectrumCanvas.h
OpenMS::TOPPViewBase::hasPeptideIdentifications
static bool hasPeptideIdentifications(const ExperimentType &map)
Returns true if the experiment map contains peptide identifications.
Definition: TOPPViewBase.cpp:648
OpenMS::Spectrum2DWidget::projectionsVisible
bool projectionsVisible() const
Returns if one of the projections is visible (or both are visible)
OpenMS::TOPPViewBase::showSpectrumBrowser
void showSpectrumBrowser()
shows the spectrum browser and updates it
Definition: TOPPViewBase.cpp:3526
StandardTypes.h
QLineEdit
OpenMS::Spectrum2DWidget::getVerticalProjection
const Spectrum1DWidget * getVerticalProjection() const
const reference to the vertical projection
OpenMS::DateTime
DateTime Class.
Definition: DateTime.h:54
File.h
MzIdentMLFile.h
OpenMS::TOPPViewBase::rerunTOPPTool
void rerunTOPPTool()
returns the last invoked TOPP tool with the same parameters
Definition: TOPPViewBase.cpp:2279
OpenMS::SpectrumCanvas::setFilters
virtual void setFilters(const DataFilters &filters)
Sets the filters applied to the data before drawing (for the current layer)
OpenMS::TOPPViewBase::dm_hull_2d_
QAction * dm_hull_2d_
Definition: TOPPViewBase.h:474
OpenMS::SpectrumAlignmentDialog::get2ndLayerIndex
Int get2ndLayerIndex()
Returns the index of the selected flipped layer.
OpenMS::ProgressLogger::setLogType
void setLogType(LogType type) const
Sets the progress log that should be used. The default type is NONE!
OpenMS::TOPPViewBase::logContextMenu
void logContextMenu(const QPoint &pos)
slot for log window context menu
Definition: TOPPViewBase.cpp:1806
OpenMS::TOPPViewBase::editMetadata
void editMetadata()
lets the user edit the meta data of a layer
Definition: TOPPViewBase.cpp:1267
OpenMS::File::findSiblingTOPPExecutable
static String findSiblingTOPPExecutable(const String &toolName)
Searches for an executable with the given name.
OpenMS::LayerData::P_PRECURSORS
Peaks: Mark precursor peaks of MS/MS scans.
Definition: LayerData.h:108
OpenMS::TOPPViewBase::changeLayerFlag
void changeLayerFlag(bool)
Definition: TOPPViewBase.cpp:1442
EnhancedWorkspace.h
OpenMS::LayerData::isDIAData
bool isDIAData() const
Check whether the current layer contains DIA (SWATH-MS) data.
Definition: LayerData.h:346
MSSpectrum.h
OpenMS::FeatureMap::getProteinIdentifications
const std::vector< ProteinIdentification > & getProteinIdentifications() const
non-mutable access to the protein identifications
OpenMS::TOPPViewBase::showLogMessage_
void showLogMessage_(LogState state, const String &heading, const String &body)
Shows a log message in the log_ window.
Definition: TOPPViewBase.cpp:3347
OpenMS::ConsensusXMLFile
This class provides Input functionality for ConsensusMaps and Output functionality for alignments and...
Definition: ConsensusXMLFile.h:62
OpenMS::IdXMLFile
Used to load and store idXML files.
Definition: IdXMLFile.h:63
OpenMS::TOPPViewBase::estimateNoiseFromRandomMS1Scans
static float estimateNoiseFromRandomMS1Scans(const ExperimentType &exp, UInt n_scans=10)
Estimates the noise by evaluating n_scans random scans of MS level 1. Assumes that 4/5 of intensities...
Definition: TOPPViewBase.cpp:615
OpenMS::FileTypes::typeToName
static String typeToName(Type type)
Returns the name/extension of the type.
OpenMS::TOPPViewBase::layerFilterVisibilityChange
void layerFilterVisibilityChange(bool)
Enables/disables the data filters for the current layer.
Definition: TOPPViewBase.cpp:1833
OpenMS::TOPPViewBase::viewChanged
void viewChanged(int)
changes the behavior according to the selected view in the spectra view bar and calls updateSpectraVi...
Definition: TOPPViewBase.cpp:1684
OpenMS::Internal::IndexedMzMLHandler
A low-level class to read an indexedmzML file.
Definition: IndexedMzMLHandler.h:79
OpenMS::TOPPViewIdentificationViewBehavior::showSpectrumAs1D
virtual void showSpectrumAs1D(int spectrum_index, int peptide_id_index, int peptide_hit_index)
Behavior for showSpectrumAs1D.
OpenMS::DefaultParamHandler::param_
Param param_
Container for current parameters.
Definition: DefaultParamHandler.h:162
OpenMS::LayerData::DT_CHROMATOGRAM
Chromatogram data.
Definition: LayerData.h:95
OpenMS::Spectrum1DWidget::showCurrentPeaksAsDIA
void showCurrentPeaksAsDIA()
Requests to display a full DIA window.
OpenMS::TOPPViewBase::zoom_together_
bool zoom_together_
Stores whether the individual windows should zoom together (be linked) or not.
Definition: TOPPViewBase.h:449
OpenMS::SpectrumCanvas::showMetaData
virtual void showMetaData(bool modifiable=false, Int index=-1)
Shows a dialog with the meta data.
OpenMS::SpectraIdentificationViewWidget::getTableWidget
QTableWidget * getTableWidget()
Access the table widget.
OpenMS::TOPPViewBase::showCursorStatusInvert
void showCursorStatusInvert(double mz, double rt)
shows m/z and rt in the status bar (inverting RT and m/z)
Definition: TOPPViewBase.cpp:1299
OpenMS::SpectrumWidget::showStatistics
void showStatistics()
Shows statistics about the data (count, min, max, avg of intensity, charge, quality and meta data)
OpenMS::Exception::BaseException::getLine
int getLine() const noexcept
Returns the line number where it occurred.
OpenMS::TOPPViewOpenDialog::viewMapAs2D
bool viewMapAs2D() const
Returns true, if 2D mode is to be used for maps.
OpenMS::SpectrumCanvas::layerModficationChange
void layerModficationChange(Size layer, bool modified)
Signal emitted whenever the modification status of a layer changes (editing and storing)
EnhancedTabBar.h