Package net.sf.mzmine.util

Examples of net.sf.mzmine.util.PeakListRowSorter


    PeakListRow rows[] = peakList.getRows();
    totalRows = rows.length;

    // Start with the highest peaks
    Arrays.sort(rows, new PeakListRowSorter(SortingProperty.Height,
        SortingDirection.Descending));

    // Compare each two rows against each other
    for (int i = 0; i < totalRows; i++) {
View Full Code Here


          && rtRange.contains(peakRow.getAverageRT())) {
        peakRows.add(peakRow);
      }
    }

    Collections.sort(peakRows, new PeakListRowSorter(
        SortingProperty.Intensity, SortingDirection.Descending));

    if (threshold > peakRows.size())
      threshold = peakRows.size();
    for (int i = 0; i < threshold; i++) {
View Full Code Here

        // Create database gateway.
        gateway = db.getModule().getGatewayClass().newInstance();

        // Identify the peak list rows starting from the biggest peaks.
        final PeakListRow[] rows = peakList.getRows();
        Arrays.sort(rows, new PeakListRowSorter(SortingProperty.Area,
            SortingDirection.Descending));

        // Initialize counters.
        numItems = rows.length;
View Full Code Here

    PeakListRow rows[] = peakList.getRows();
    totalRows = rows.length;

    // Sort the array by m/z so we start with biggest peak (possible
    // complex)
    Arrays.sort(rows, new PeakListRowSorter(SortingProperty.MZ,
        SortingDirection.Descending));

    // Compare each three rows against each other
    for (int i = 0; i < totalRows; i++) {
View Full Code Here

      return ExitCode.CANCEL;
    }

    RawDataFile plDataFiles[] = selectedPeakLists[0].getRawDataFiles();
    PeakListRow plRows[] = selectedPeakLists[0].getRows();
    Arrays.sort(plRows, new PeakListRowSorter(SortingProperty.MZ,
        SortingDirection.Ascending));

    getParameter(dataFiles).setChoices(plDataFiles);
    getParameter(dataFiles).setValue(plDataFiles);
View Full Code Here

    // Get rows.
    final PeakListRow[] rows = peakList.getRows();
    totalRows = rows.length;

    // Start with the highest peaks.
    Arrays.sort(rows, new PeakListRowSorter(SortingProperty.Height,
        SortingDirection.Descending));

    // Compare each pair of rows against each other.
    for (int i = 0; !isCanceled() && i < totalRows; i++) {
View Full Code Here

      final RTTolerance rtTolerance, final boolean requireSameId) {

    final PeakListRow[] peakListRows = origPeakList.getRows();
    final int rowCount = peakListRows.length;

    Arrays.sort(peakListRows, new PeakListRowSorter(SortingProperty.Area,
        SortingDirection.Descending));

    // Loop through all peak list rows
    processedRows = 0;
    totalRows = rowCount;
View Full Code Here

TOP

Related Classes of net.sf.mzmine.util.PeakListRowSorter

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.