Package net.sf.mzmine.data.impl

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


      MassDetector detector = massDetector.getModule();
      DataPoint mzPeaks[] = detector.getMassValues(scan,
          massDetector.getParameterSet());

      SimpleMassList newMassList = new SimpleMassList(name, scan, mzPeaks);

      // Add new mass list to the scan
      scan.addMassList(newMassList);

      processedScans++;
View Full Code Here


    }

    if (qName.equals(RawDataElementName_2_3.MASS_LIST.getElementName())) {
      String name = attrs.getValue(RawDataElementName_2_3.NAME
          .getElementName());
      SimpleMassList newML = new SimpleMassList(name, null, null);
      currentMassLists.add(newML);
    }
  }
View Full Code Here

    if (qName.equals(RawDataElementName_2_3.MASS_LIST.getElementName())) {
      char encodedDataPoints[] = getTextOfElement().toCharArray();
      DataPoint dataPoints[] = ScanUtils
          .decodeDataPointsBase64(encodedDataPoints);
      SimpleMassList newML = currentMassLists
          .get(currentMassLists.size() - 1);
      newML.setDataPoints(dataPoints);
    }

    if (qName.equals(RawDataElementName_2_3.SCAN.getElementName())) {

      try {
        int newStorageID = 1;
        TreeMap<Integer, Long> dataPointsOffsets = newRawDataFile
            .getDataPointsOffsets();
        TreeMap<Integer, Integer> dataPointsLengths = newRawDataFile
            .getDataPointsLengths();
        if (!dataPointsOffsets.isEmpty())
          newStorageID = dataPointsOffsets.lastKey().intValue() + 1;

        StorableScan storableScan = new StorableScan(newRawDataFile,
            newStorageID, dataPointsNumber, scanNumber, msLevel,
            retentionTime, parentScan, precursorMZ,
            precursorCharge, fragmentScan, centroided);
        newRawDataFile.addScan(storableScan);

        dataPointsOffsets.put(newStorageID, storageFileOffset);
        dataPointsLengths.put(newStorageID, dataPointsNumber);

        for (SimpleMassList newML : currentMassLists) {
          newML.setScan(storableScan);
        }
        allMassLists.addAll(currentMassLists);
        currentMassLists.clear();

      } catch (IOException e) {
View Full Code Here

      DataPoint mzPeaks[] = massList.getDataPoints();

      DataPoint newMzPeaks[] = ShoulderPeaksFilter.filterMassValues(
          mzPeaks, parameters);

      SimpleMassList newMassList = new SimpleMassList(massListName + " "
          + suffix, scan, newMzPeaks);

      scan.addMassList(newMassList);

      // Remove old mass list
View Full Code Here

TOP

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

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.