Package net.sf.mzmine.data

Examples of net.sf.mzmine.data.PeakList


  @Override
  @Nonnull
  public ExitCode runModule(@Nonnull ParameterSet parameters,
      @Nonnull Collection<Task> tasks) {

    PeakList peakLists[] = parameters.getParameter(
        CustomDBSearchParameters.peakLists).getValue();

    for (PeakList peakList : peakLists) {
      Task newTask = new CustomDBSearchTask(peakList, parameters);
      tasks.add(newTask);
View Full Code Here


  /**
   * Returns selected peak list
   */
  PeakList getSelectedPeakList() {
    PeakList selectedPeakList = (PeakList) peakListSelector
        .getSelectedItem();
    return selectedPeakList;
  }
View Full Code Here

   */
  void rebuildPeakListSelector() {

    logger.finest("Rebuilding the peak list selector");

    PeakList selectedPeakList = (PeakList) peakListSelector
        .getSelectedItem();
    PeakList currentPeakLists[] = MZmineCore.getCurrentProject()
        .getPeakLists(dataFile);
    peakListSelector.setEnabled(false);
    peakListSelector.removeActionListener(masterFrame);
    peakListSelector.removeAllItems();

View Full Code Here

      propertiesDialog.setVisible(true);
    }

    if ("PEAKLIST_CHANGE".equals(command)) {

      final PeakList selectedPeakList = bottomPanel.getSelectedPeakList();
      if (selectedPeakList != null) {

        LOG.finest("Loading a peak list " + selectedPeakList
            + " to a 3D view of " + dataFile);

        try {
          display.setPeaks(selectedPeakList, selectedPeakList
              .getPeaksInsideScanAndMZRange(dataFile, rtRange,
                  mzRange), bottomPanel
              .showCompoundNameSelected());
        } catch (RemoteException ex) {
          LOG.log(Level.WARNING, "Unable to set peaks", ex);
View Full Code Here

      // If no scan is loaded yet, ignore
      if (currentScan == null)
        return;

      PeakList selectedPeakList = bottomPanel.getSelectedPeakList();
      loadPeaks(selectedPeakList);

    }

    if (command.equals("PREVIOUS_SCAN")) {
View Full Code Here

  /**
   * Returns selected peak list
   */
  PeakList getSelectedPeakList() {
    PeakList selectedPeakList = (PeakList) peakListSelector
        .getSelectedItem();
    return selectedPeakList;
  }
View Full Code Here

   */
  void rebuildPeakListSelector() {

    logger.finest("Rebuilding the peak list selector");

    PeakList selectedPeakList = (PeakList) peakListSelector
        .getSelectedItem();
    PeakList currentPeakLists[] = MZmineCore.getCurrentProject()
        .getPeakLists(dataFile);
    peakListSelector.removeAllItems();
    for (int i = currentPeakLists.length - 1; i >= 0; i--) {
      peakListSelector.addItem(currentPeakLists[i]);
    }
View Full Code Here

    MZmineProcessingModule module = moduleMenuItems.get(src);
    if (module != null) {
      RawDataFile selectedFiles[] = MZmineCore.getDesktop()
          .getSelectedDataFiles();
      PeakList selectedPeakLists[] = MZmineCore.getDesktop()
          .getSelectedPeakLists();

      ParameterSet moduleParameters = MZmineCore.getConfiguration()
          .getModuleParameters(module.getClass());
View Full Code Here

      PeakListDataSet peakListDataSet = (PeakListDataSet) dataset;

      ChromatographicPeak peak = peakListDataSet.getPeak(series, item);

      PeakList peakList = peakListDataSet.getPeakList();
      PeakListRow row = peakList.getPeakRow(peak);

      String tooltip = "Peak: " + peak + "\nStatus: "
          + peak.getPeakStatus() + "\nPeak list row: " + row
          + "\nData point m/z: " + mzFormat.format(mzValue)
          + "\nData point intensity: "
View Full Code Here

    treeObjects.put(object, newNode);

    if (object instanceof PeakList) {
      int childCount = getChildCount(peakListsNode);
      insertNodeInto(newNode, peakListsNode, childCount);
      final PeakList peakList = (PeakList) object;
      PeakListRow rows[] = peakList.getRows();
      for (int i = 0; i < rows.length; i++) {
        DefaultMutableTreeNode rowNode = new DefaultMutableTreeNode(
            rows[i]);
        treeObjects.put(rows[i], rowNode);
        insertNodeInto(rowNode, newNode, i);
View Full Code Here

TOP

Related Classes of net.sf.mzmine.data.PeakList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.