Package net.sf.mzmine.data.impl

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


      double mz = dataPoints[i].getMZ();
      double intensity = dataPoints[i].getIntensity() / maxIntensity
          * normalizedValue;

      newDataPoints[i] = new SimpleDataPoint(mz, intensity);
    }

    SimpleIsotopePattern newPattern = new SimpleIsotopePattern(
        newDataPoints, pattern.getStatus(), pattern.getDescription());

View Full Code Here


            + dataPoints[i + 1].getIntensity();
        double newMZ = (dataPoints[i].getMZ()
            * dataPoints[i].getIntensity() + dataPoints[i + 1]
            .getMZ() * dataPoints[i + 1].getIntensity())
            / newIntensity;
        dataPoints[i + 1] = new SimpleDataPoint(newMZ, newIntensity);
        dataPoints[i] = null;
      }
    }

    ArrayList<DataPoint> newDataPoints = new ArrayList<DataPoint>();
View Full Code Here

              massOverCharge = (double) peakStream.readFloat();
              intensity = (double) peakStream.readFloat();
            }

            // Copy m/z and intensity data
            completeDataPoints[i] = new SimpleDataPoint(
                massOverCharge, intensity);

          }
        } catch (IOException eof) {
          setStatus(TaskStatus.ERROR);
View Full Code Here

        LittleEndianDataInputStream dis = new LittleEndianDataInputStream(
            dumpStream);
        for (int i = 0; i < numOfDataPoints; i++) {
          double mz = dis.readDouble();
          double intensity = dis.readDouble();
          completeDataPoints[i] = new SimpleDataPoint(mz, intensity);
        }

        boolean centroided = ScanUtils.isCentroided(completeDataPoints);

        DataPoint optimizedDataPoints[] = ScanUtils
View Full Code Here

      double mz = massValueArray.getDouble(massIndex0)
          * massValueScaleFactor;
      double intensity = intensityValueArray.getDouble(intensityIndex0)
          * intensityValueScaleFactor;
      completeDataPoints[j] = new SimpleDataPoint(mz, intensity);

    }

    scanNum++;

View Full Code Here

        DataPoint completeDataPoints[] = new DataPoint[peaksCount];
        spectrumInstrumentFlag = false;

        // Copy m/z and intensity data
        for (int i = 0; i < completeDataPoints.length; i++) {
          completeDataPoints[i] = new SimpleDataPoint(
              (double) mzDataPoints[i],
              (double) intensityDataPoints[i]);
        }

        // Auto-detect whether this scan is centroided
View Full Code Here

        scanner.next();

        int spectrumSize = scanner.nextInt();
        DataPoint[] dataPoints = new DataPoint[spectrumSize];
        for (int j = 0; j < spectrumSize; j++) {
          dataPoints[j] = new SimpleDataPoint(scanner.nextDouble(),
              scanner.nextDouble());
        }
        newMZmineFile.addScan(new SimpleScan(null, parsedScans + 1,
            msLevel, retentionTime, -1, 0.0, charge, null,
            dataPoints, ScanUtils.isCentroided(dataPoints)));
View Full Code Here

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

        processedScans++;
View Full Code Here

    Number intensityValues[] = intensityArray.getBinaryDataAsNumberArray();
    DataPoint dataPoints[] = new DataPoint[mzValues.length];
    for (int i = 0; i < dataPoints.length; i++) {
      double mz = mzValues[i].doubleValue();
      double intensity = intensityValues[i].doubleValue();
      dataPoints[i] = new SimpleDataPoint(mz, intensity);
    }
    return dataPoints;

  }
View Full Code Here

    if (pattern != null) {
      isotopes = pattern.getDataPoints();
    } else {
      isotopes = new DataPoint[1];
      ChromatographicPeak bestPeak = row.getBestPeak();
      isotopes[0] = new SimpleDataPoint(bestPeak.getMZ(),
          bestPeak.getHeight());
    }

    try {
      FileWriter fileWriter = new FileWriter(outputFile);
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.