Package net.sf.mzmine.data.impl

Examples of net.sf.mzmine.data.impl.SimpleChromatographicPeak


        continue;
      }

      assert maxPoint != null;

      SimpleChromatographicPeak c = new SimpleChromatographicPeak(
          dataFile, scan.getPrecursorMZ(),
          bestScan.getRetentionTime(), maxPoint.getIntensity(),
          maxPoint.getIntensity(),
          new int[]{bestScan.getScanNumber()},
          new DataPoint[]{maxPoint}, PeakStatus.DETECTED,
View Full Code Here


      // Find the best fragmentation scan, if available
      int fragmentScan = ScanUtils.findBestFragmentScan(rawDataFile,
          finalRTRange, finalMZRange);

      SimpleChromatographicPeak newPeak = new SimpleChromatographicPeak(
          rawDataFile, mz, rt, height, area, scanNumbers,
          finalDataPoint, PeakStatus.ESTIMATED, representativeScan,
          fragmentScan, finalRTRange, finalMZRange,
          finalIntensityRange);
View Full Code Here

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

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

        }
      }

      PeakStatus status = PeakStatus.valueOf(peakStatus);

      SimpleChromatographicPeak peak = new SimpleChromatographicPeak(
          dataFile, mass, rt, height, area, scanNumbers, mzPeaks,
          status, representativeScan, fragmentScan, peakRTRange,
          peakMZRange, peakIntensityRange);

      peak.setCharge(currentPeakCharge);

      if (currentIsotopes.size() > 0) {
        SimpleIsotopePattern newPattern = new SimpleIsotopePattern(
            currentIsotopes.toArray(new DataPoint[0]),
            currentIsotopePatternStatus,
            currentIsotopePatternDescription);
        peak.setIsotopePattern(newPattern);
        currentIsotopes.clear();
      }

      buildingRow.addPeak(dataFile, peak);
View Full Code Here

        }
      }

      PeakStatus status = PeakStatus.valueOf(peakStatus);

      SimpleChromatographicPeak peak = new SimpleChromatographicPeak(
          dataFile, mass, rt, height, area, scanNumbers, mzPeaks,
          status, representativeScan, fragmentScan, peakRTRange,
          peakMZRange, peakIntensityRange);

      peak.setCharge(currentPeakCharge);

      if (currentIsotopes.size() > 0) {
        SimpleIsotopePattern newPattern = new SimpleIsotopePattern(
            currentIsotopes.toArray(new DataPoint[0]),
            currentIsotopePatternStatus,
            currentIsotopePatternDescription);
        peak.setIsotopePattern(newPattern);
        currentIsotopes.clear();
      }

      buildingRow.addPeak(dataFile, peak);
View Full Code Here

        PeakUtils.copyPeakListRowProperties(row, newRow);

        // Copy the peaks.
        for (final ChromatographicPeak peak : row.getPeaks()) {

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

      } else {
        Arrays.sort(originalPeaks, new PeakSorter(SortingProperty.MZ,
            SortingDirection.Ascending));
      }

      ChromatographicPeak newPeak = new SimpleChromatographicPeak(
          originalPeaks[0]);
      newPeak.setIsotopePattern(newPattern);
      newPeak.setCharge(bestFitCharge);

      // Keep old ID
      int oldID = oldRow.getID();
      SimplePeakListRow newRow = new SimplePeakListRow(oldID);
      PeakUtils.copyPeakListRowProperties(oldRow, newRow);
View Full Code Here

        }
      }

      PeakStatus status = PeakStatus.valueOf(peakStatus);

      SimpleChromatographicPeak peak = new SimpleChromatographicPeak(
          dataFile, mass, rt, height, area, scanNumbers, mzPeaks,
          status, representativeScan, fragmentScan, peakRTRange,
          peakMZRange, peakIntensityRange);

      peak.setCharge(currentPeakCharge);

      if (currentIsotopes.size() > 0) {
        SimpleIsotopePattern newPattern = new SimpleIsotopePattern(
            currentIsotopes.toArray(new DataPoint[0]),
            currentIsotopePatternStatus,
            currentIsotopePatternDescription);
        peak.setIsotopePattern(newPattern);
        currentIsotopes.clear();
      }

      buildingRow.addPeak(dataFile, peak);
View Full Code Here

        // Normalize peak
        ChromatographicPeak originalPeak = row.getPeak(file);
        if (originalPeak != null) {

          SimpleChromatographicPeak normalizedPeak = new SimpleChromatographicPeak(
              originalPeak);

          PeakUtils.copyPeakProperties(originalPeak, normalizedPeak);

          double normalizedHeight = originalPeak.getHeight()
              / normalizationFactor;
          double normalizedArea = originalPeak.getArea()
              / normalizationFactor;
          normalizedPeak.setHeight(normalizedHeight);
          normalizedPeak.setArea(normalizedArea);

          normalizedRow.addPeak(file, normalizedPeak);
        }

      }
View Full Code Here

    PeakUtils.copyPeakListRowProperties(row, newRow);

    // Copy the peaks.
    for (final ChromatographicPeak peak : row.getPeaks()) {

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

TOP

Related Classes of net.sf.mzmine.data.impl.SimpleChromatographicPeak

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.