Examples of addPeak()


Examples of net.sf.mzmine.data.PeakListRow.addPeak()

              bestScan.getRetentionTime()), new Range(
              scan.getPrecursorMZ()), new Range(
              maxPoint.getIntensity()));

      PeakListRow entry = new SimplePeakListRow(scan.getScanNumber());
      entry.addPeak(dataFile, c);

      newPeakList.addRow(entry);
      processedScans++;
    }
View Full Code Here

Examples of net.sf.mzmine.data.PeakListRow.addPeak()

              assert maxDataPoint != null;

              if (!isCanceled() && maxScanNumber >= 0) {

                // Create a new peak.
                newRow.addPeak(
                    dataFile,
                    new SimpleChromatographicPeak(
                        dataFile,
                        maxDataPoint.getMZ(),
                        peak.getRT(),
View Full Code Here

Examples of net.sf.mzmine.data.PeakListRow.addPeak()

                rtRange, intTolerance);

            gaps.add(newGap);

          } else {
            newRow.addPeak(dataFile, sourcePeak);
          }

        }

        // Stop processing this file if there are no gaps
View Full Code Here

Examples of net.sf.mzmine.data.PeakListRow.addPeak()

                gaps.add(newGap);
              }
            }

          } else {
            newRow.addPeak(datafile1, sourcePeak);
          }

        }

        // Stop processing this file if there are no gaps
View Full Code Here

Examples of net.sf.mzmine.data.PeakListRow.addPeak()

        if (currentPeak == null)
          currentPeak = fillGap(sourceRow, column);

        // If a peak was found or created, add it
        if (currentPeak != null)
          newRow.addPeak(column, currentPeak);

      }

      processedPeakList.addRow(newRow);
View Full Code Here

Examples of net.sf.mzmine.data.PeakListRow.addPeak()

        for (final ChromatographicPeak peak : row.getPeaks()) {

          final ChromatographicPeak newPeak = new SimpleChromatographicPeak(
              peak);
          PeakUtils.copyPeakProperties(peak, newPeak);
          newRow.addPeak(peak.getDataFile(), newPeak);
        }

        newPeakList.addRow(newRow);
      }
    }
View Full Code Here

Examples of net.sf.mzmine.data.PeakListRow.addPeak()

    PeakListRow newRow = new SimplePeakListRow(ID);
    try {
      for (PeakListRow row : this.peaks) {
        if (row != null) {
          for (ChromatographicPeak peak : row.getPeaks()) {
            newRow.addPeak(peak.getDataFile(), peak);
          }
        }
      }
    } catch (NullPointerException e) {
      e.printStackTrace();
View Full Code Here

Examples of net.sf.mzmine.data.PeakListRow.addPeak()

      PeakListRow row = new SimplePeakListRow(++id);
      row.setComment(name);

      for (FameAlignmentProcessingTask task : processingTasks) {
        if (task.getResults().containsKey(name))
          row.addPeak(task.getResults().get(name).getDataFile(), task
              .getResults().get(name));
      }

      peakList.addRow(row);
    }
View Full Code Here

Examples of net.sf.mzmine.data.PeakListRow.addPeak()

    for (Double averageRT : matchedCandidates.keySet()) {
      List<MassCandidate> masses = matchedCandidates.get(averageRT);
      PeakListRow row = new SimplePeakListRow(id++);

      for (MassCandidate m : masses)
        row.addPeak(m.getDataFile(), m);

      peakList.addRow(row);
    }

    MZmineCore.getCurrentProject().addPeakList(peakList);
View Full Code Here

Examples of net.sf.mzmine.data.PeakListRow.addPeak()

          alignedPeakList.addRow(targetRow);
        }

        // Add all peaks from the original row to the aligned row
        for (RawDataFile file : row.getRawDataFiles()) {
          targetRow.addPeak(file, row.getPeak(file));
        }

        // Add all non-existing identities from the original row to the
        // aligned row
        PeakUtils.copyPeakListRowProperties(row, targetRow);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.