Package net.sf.mzmine.data.impl

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


    StringTokenizer tokenizer = new StringTokenizer(ions, ",");
    while (tokenizer.hasMoreTokens()) {
      tokens = tokenizer.nextToken().split(":");
      mass = Double.parseDouble(tokens[0]);
      intensity = Double.parseDouble(tokens[1]);
      dataPoints.add(new SimpleDataPoint(mass, intensity));
    }

    scan.setDataPoints(dataPoints.toArray(new SimpleDataPoint[0]));

    return scan;
View Full Code Here


      // Replace the MzPeak instance with an instance of SimpleDataPoint,
      // to reduce the memory usage. After we finish this extended peak,
      // we
      // don't need the additional data provided by the MzPeak
      SimpleDataPoint newDataPoint = new SimpleDataPoint(mzPeak);
      dataPointsMap.put(allScanNumbers[i], newDataPoint);

      if (i == 0) {
        rawDataPointsIntensityRange = new Range(mzPeak.getIntensity());
        rawDataPointsMZRange = new Range(mzPeak.getMZ());
View Full Code Here

      if (basePeak != null) {
        if (basePeak.getIntensity() > 0)
          dataPointFound = true;
        newPeak.addDatapoint(scan.getScanNumber(), basePeak);
      } else {
        DataPoint fakeDataPoint = new SimpleDataPoint(
            mzRangeWithTol.getAverage(), 0);
        newPeak.addDatapoint(scan.getScanNumber(), fakeDataPoint);
      }

    }
View Full Code Here

    for (int i = 0; i < allRetentionTimes.length; i++) {

      shapeHeight = calculateEMGIntensity(H, M, Dp, Ap, C,
          allRetentionTimes[i]);
      if (shapeHeight > height * 0.01d) {
        SimpleDataPoint mzPeak = new SimpleDataPoint(mz, shapeHeight);
        dataPointsMap.put(allScanNumbers[i], mzPeak);
        rawDataPointsRTRange.extendRange(allRetentionTimes[i]);
      }

      currentRT = allRetentionTimes[i] * 60d;
 
View Full Code Here

      }
      intensity /= sqrtScaleLevel;
      // Eliminate the negative part of the wavelet map
      if (intensity < 0)
        intensity = 0;
      cwtDataPoints[dx] = new SimpleDataPoint(dataPoints[dx].getMZ(),
          (double) intensity);
    }

    return cwtDataPoints;
  }
View Full Code Here

      }

      rawDataPoints.add(originalDataPoints[ind]);

      if (originalDataPoints[peakMaxInd].getIntensity() > noiseLevel) {
        SimpleDataPoint peakDataPoint = new SimpleDataPoint(
            originalDataPoints[peakMaxInd].getMZ(),
            calcAproxIntensity(rawDataPoints));

        mzPeaks.add(peakDataPoint);
View Full Code Here

    for (int i = 0; i < dataPoints.length; i++) {
      try {
        double mz = peakStream.readDouble();
        double intensity = peakStream.readDouble();
        dataPoints[i] = new SimpleDataPoint(mz, intensity);
      } catch (IOException e) {
        e.printStackTrace();
      }
    }
View Full Code Here

    for (int i = 0; i < retentionTimes.length; i++) {

      currentRT = retentionTimes[i] * 60d;

      shapeHeight = calculateIntensity(currentRT);
      SimpleDataPoint mzPeak = new SimpleDataPoint(mz, shapeHeight);
      dataPointsMap.put(scanNumbers[i], mzPeak);

      area += (currentRT - previousRT) * (shapeHeight + previousHeight)
          / 2;
      previousRT = currentRT;
View Full Code Here

   */
  public DataPoint getDataPoint(int scanNumber) {
    int index = Arrays.binarySearch(scanNumbers, scanNumber);
    if (index < 0)
      return null;
    SimpleDataPoint dp = new SimpleDataPoint(dataPointMZValues[index],
        dataPointIntensityValues[index]);
    return dp;
  }
View Full Code Here

    for (int i = 0; i < allRetentionTimes.length; i++) {

      currentRT = allRetentionTimes[i] * 60d;
      shapeHeight = calculateIntensity(currentRT);
      if (shapeHeight > height * 0.01d) {
        SimpleDataPoint mzPeak = new SimpleDataPoint(mz, shapeHeight);
        dataPointsMap.put(allScanNumbers[i], mzPeak);
        rawDataPointsRTRange.extendRange(currentRT);
        area += ((currentRT - previousRT) * (shapeHeight + previousHeight)) / 2;
      }

View Full Code Here

TOP

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

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.