Package uk.ac.ebi.jmzml.model.mzml

Examples of uk.ac.ebi.jmzml.model.mzml.PrecursorList


    return dataPoints;

  }

  private int extractParentScanNumber(Spectrum spectrum) {
    PrecursorList precursorListElement = spectrum.getPrecursorList();
    if ((precursorListElement == null)
        || (precursorListElement.getCount().equals(0)))
      return -1;

    List<Precursor> precursorList = precursorListElement.getPrecursor();
    for (Precursor parent : precursorList) {
      // Get the precursor scan number
      String precursorScanId = parent.getSpectrumRef();
      if (precursorScanId == null) {
        logger.warning("Missing precursor spectrumRef tag for spectrum ID "
View Full Code Here


    return -1;
  }

  private double extractPrecursorMz(Spectrum spectrum) {

    PrecursorList precursorListElement = spectrum.getPrecursorList();
    if ((precursorListElement == null)
        || (precursorListElement.getCount().equals(0)))
      return 0;

    List<Precursor> precursorList = precursorListElement.getPrecursor();
    for (Precursor parent : precursorList) {

      SelectedIonList selectedIonListElement = parent
          .getSelectedIonList();
      if ((selectedIonListElement == null)
View Full Code Here

    }
    return 0;
  }

  private int extractPrecursorCharge(Spectrum spectrum) {
    PrecursorList precursorListElement = spectrum.getPrecursorList();
    if ((precursorListElement == null)
        || (precursorListElement.getCount().equals(0)))
      return 0;

    List<Precursor> precursorList = precursorListElement.getPrecursor();
    for (Precursor parent : precursorList) {

      SelectedIonList selectedIonListElement = parent
          .getSelectedIonList();
      if ((selectedIonListElement == null)
View Full Code Here

TOP

Related Classes of uk.ac.ebi.jmzml.model.mzml.PrecursorList

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.