Examples of MZmineProject


Examples of net.sf.mzmine.project.MZmineProject

      numberOfGroups = selectedRawDataFiles.length;
    }

    if (coloringType.isByParameter()) {
      // Group files with same parameter value to same group
      MZmineProject project = MZmineCore.getCurrentProject();
      Vector<Object> availableParameterValues = new Vector<Object>();
      UserParameter selectedParameter = coloringType.getParameter();
      for (RawDataFile rawDataFile : selectedRawDataFiles) {
        Object paramValue = project.getParameterValue(
            selectedParameter, rawDataFile);
        if (!availableParameterValues.contains(paramValue))
          availableParameterValues.add(paramValue);
      }

      for (int ind = 0; ind < selectedRawDataFiles.length; ind++) {
        Object paramValue = project.getParameterValue(
            selectedParameter, selectedRawDataFiles[ind]);
        groupsForSelectedRawDataFiles[ind] = availableParameterValues
            .indexOf(paramValue);
      }
      parameterValuesForGroups = availableParameterValues.toArray();
View Full Code Here

Examples of net.sf.mzmine.project.MZmineProject

      numberOfGroups = selectedRawDataFiles.length;
    }

    if (coloringType.isByParameter()) {
      // Group files with same parameter value to same group
      MZmineProject project = MZmineCore.getCurrentProject();
      Vector<Object> availableParameterValues = new Vector<Object>();
      UserParameter selectedParameter = coloringType.getParameter();
      for (RawDataFile rawDataFile : selectedRawDataFiles) {
        Object paramValue = project.getParameterValue(
            selectedParameter, rawDataFile);
        if (!availableParameterValues.contains(paramValue))
          availableParameterValues.add(paramValue);
      }

      for (int ind = 0; ind < selectedRawDataFiles.length; ind++) {
        Object paramValue = project.getParameterValue(
            selectedParameter, selectedRawDataFiles[ind]);
        groupsForSelectedRawDataFiles[ind] = availableParameterValues
            .indexOf(paramValue);
      }
      parameterValuesForGroups = availableParameterValues.toArray();
View Full Code Here

Examples of net.sf.mzmine.project.MZmineProject

      }
    }

    // Append processed peak list to the project
    MZmineProject currentProject = MZmineCore.getCurrentProject();
    currentProject.addPeakList(processedPeakList);

    // Add task description to peakList
    processedPeakList
        .addDescriptionOfAppliedTask(new SimplePeakListAppliedMethod(
            "Gap filling ", parameters));

    // Remove the original peaklist if requested
    if (removeOriginal)
      currentProject.removePeakList(peakList);

    logger.info("Finished gap-filling on " + peakList);
    setStatus(TaskStatus.FINISHED);

  }
View Full Code Here

Examples of net.sf.mzmine.project.MZmineProject

      processedRows++;

    }

    // Append processed peak list to the project
    MZmineProject currentProject = MZmineCore.getCurrentProject();
    currentProject.addPeakList(processedPeakList);

    // Add task description to peakList
    processedPeakList
        .addDescriptionOfAppliedTask(new SimplePeakListAppliedMethod(
            "Gap filling using RT and m/z range", parameters));

    // Remove the original peaklist if requested
    if (removeOriginal)
      currentProject.removePeakList(peakList);

    setStatus(TaskStatus.FINISHED);

    logger.info("Finished gap-filling " + peakList);
View Full Code Here

Examples of net.sf.mzmine.project.MZmineProject

      newPeakID++;
      processedRows++;
    }

    // Add new peaklist to the project
    MZmineProject currentProject = MZmineCore.getCurrentProject();
    currentProject.addPeakList(newPeakList);

    // Remove the original peaklist if requested
    if (removeOriginal)
      currentProject.removePeakList(originalPeakList);

    // Load previous applied methods
    for (PeakListAppliedMethod proc : originalPeakList.getAppliedMethods()) {
      newPeakList.addDescriptionOfAppliedTask(proc);
    }
View Full Code Here

Examples of net.sf.mzmine.project.MZmineProject

          newPeakList = resolvePeaks(originalPeakList);

          if (!isCanceled()) {

            // Add new peaklist to the project.
            final MZmineProject currentProject = MZmineCore
                .getCurrentProject();
            currentProject.addPeakList(newPeakList);

            // Remove the original peaklist if requested.
            if (parameters.getParameter(AUTO_REMOVE).getValue()) {

              currentProject.removePeakList(originalPeakList);
            }

            setStatus(TaskStatus.FINISHED);
            LOG.info("Finished peak recognition on "
                + originalPeakList);
View Full Code Here

Examples of net.sf.mzmine.project.MZmineProject

          processEI();
          break;
      }

      // Add the newly created file to the project
      final MZmineProject project = MZmineCore.getCurrentProject();
      project.addFile(correctedDataFile);

      // Remove the original data file if requested
      if (removeOriginal)
        project.removeFile(dataFile);
    } catch (IOException e) {
      logger.log(Level.SEVERE,
          "Retention correction initialization error", e);
      setStatus(TaskStatus.ERROR);
      errorMessage = e.getMessage();
View Full Code Here

Examples of net.sf.mzmine.project.MZmineProject

                .getValue());

        if (!isCanceled()) {

          // Add new peakList to the project.
          final MZmineProject project = MZmineCore
              .getCurrentProject();
          project.addPeakList(filteredPeakList);

          // Remove the original peakList if requested.
          if (parameters.getParameter(
              DuplicateFilterParameters.autoRemove).getValue()) {

            project.removePeakList(peakList);
          }

          // Finished.
          LOG.info("Finished filtering duplicate peak list rows on "
              + peakList);
View Full Code Here

Examples of net.sf.mzmine.project.MZmineProject

      processedPeaks++;

    }

    // Add new peakList to the project
    MZmineProject currentProject = MZmineCore.getCurrentProject();
    currentProject.addPeakList(deisotopedPeakList);

    // Load previous applied methods
    for (PeakListAppliedMethod proc : peakList.getAppliedMethods()) {
      deisotopedPeakList.addDescriptionOfAppliedTask(proc);
    }

    // Add task description to peakList
    deisotopedPeakList
        .addDescriptionOfAppliedTask(new SimplePeakListAppliedMethod(
            "Isotopic peaks grouper", parameters));

    // Remove the original peakList if requested
    if (removeOriginal)
      currentProject.removePeakList(peakList);

    logger.info("Finished isotopic peak grouper on " + peakList);
    setStatus(TaskStatus.FINISHED);

  }
View Full Code Here

Examples of net.sf.mzmine.project.MZmineProject

      // the TaskProgressWindow from disposing
      frame.doDefaultCloseAction();
    }

    // Create a new, empty project
    MZmineProject newProject = new MZmineProjectImpl();

    // Replace the current project with the new one
    ProjectManager projectManager = MZmineCore.getProjectManager();
    projectManager.setCurrentProject(newProject);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.