Package net.sf.mzmine.data

Examples of net.sf.mzmine.data.PeakList


  public HistogramWindow(ParameterSet parameters) {

    super(null, true, true, true, true);

    PeakList peakList = parameters.getParameter(
        HistogramParameters.peakList).getValue()[0];

    this.setTitle("Histogram of " + peakList.getName());

    RawDataFile rawDataFiles[] = parameters.getParameter(
        HistogramParameters.dataFiles).getValue();

    HistogramDataType dataType = parameters.getParameter(
View Full Code Here


  public HistogramParameters() {
    super(new Parameter[]{peakList, dataFiles, dataRange, numOfBins});
  }

  public ExitCode showSetupDialog() {
    PeakList selectedPeaklists[] = getParameter(
        HistogramParameters.peakList).getValue();
    RawDataFile dataFiles[];
    if ((selectedPeaklists == null) || (selectedPeaklists.length != 1)) {
      dataFiles = MZmineCore.getCurrentProject().getDataFiles();
    } else {
View Full Code Here

  public String generateToolTip(XYDataset dataset, int series, int item) {

    PeakDataSet peakDataSet = (PeakDataSet) dataset;
    PeakDataPoint dataPoint = peakDataSet.getDataPoint(series, item);

    PeakList peakList = peakDataSet.getPeakList();
    ChromatographicPeak peak = peakDataSet.getPeak(series);
    PeakListRow row = peakList.getPeakRow(peak);
    double rtValue = dataPoint.getRT();
    double intValue = dataPoint.getIntensity();
    double mzValue = dataPoint.getMZ();
    int scanNumber = dataPoint.getScanNumber();
View Full Code Here

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

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

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

   * Returns a peak list different peaks depending on the selected option of
   * the "peak Threshold" combo box
   */
  PeakList getPeaksInThreshold() {

    PeakList selectedPeakList = (PeakList) peakListSelector
        .getSelectedItem();
    PeakThresholdMode mode = (PeakThresholdMode) thresholdCombo
        .getSelectedItem();

    switch (mode) {
View Full Code Here

  /**
   * Returns a peak list with the peaks which intensity is above the parameter
   * "intensity"
   */
  PeakList getIntensityThresholdPeakList(double intensity) {
    PeakList selectedPeakList = (PeakList) peakListSelector
        .getSelectedItem();
    if (selectedPeakList == null)
      return null;
    SimplePeakList newList = new SimplePeakList(selectedPeakList.getName(),
        selectedPeakList.getRawDataFiles());

    for (PeakListRow peakRow : selectedPeakList.getRows()) {
      ChromatographicPeak peak = peakRow.getPeak(dataFile);
      if (peak == null)
        continue;
      if (peak.getRawDataPointsIntensityRange().getMax() > intensity) {
        newList.addRow(peakRow);
View Full Code Here

   * Returns a peak list with the top peaks defined by the parameter
   * "threshold"
   */
  PeakList getTopThresholdPeakList(int threshold) {

    PeakList selectedPeakList = (PeakList) peakListSelector
        .getSelectedItem();
    if (selectedPeakList == null)
      return null;
    SimplePeakList newList = new SimplePeakList(selectedPeakList.getName(),
        selectedPeakList.getRawDataFiles());

    Vector<PeakListRow> peakRows = new Vector<PeakListRow>();

    Range mzRange = selectedPeakList.getRowsMZRange();
    Range rtRange = selectedPeakList.getRowsRTRange();

    PeakThresholdMode selectedPeakOption = (PeakThresholdMode) thresholdCombo
        .getSelectedItem();
    if (selectedPeakOption == PeakThresholdMode.TOP_PEAKS_AREA) {
      mzRange = masterFrame.getPlot().getXYPlot().getAxisRange();
      rtRange = masterFrame.getPlot().getXYPlot().getDomainRange();
    }

    for (PeakListRow peakRow : selectedPeakList.getRows()) {
      if (mzRange.contains(peakRow.getAverageMZ())
          && rtRange.contains(peakRow.getAverageRT())) {
        peakRows.add(peakRow);
      }
    }
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

          thresholdSettings.setTopPeaksThreshold(topPeaks);
          break;
      }
    }

    PeakList selectedPeakList = getPeaksInThreshold();
    if (selectedPeakList != null)
      masterFrame.getPlot().loadPeakList(selectedPeakList);

  }
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.