Package net.sf.mzmine.util

Examples of net.sf.mzmine.util.ExitCode


      MZmineCore.getCurrentProject().removeFile(dataFile);

    File batchFile = new File(
        "src/test/resources/deconvolutedanalysis/spectrafiltertest.xml");
    Assert.assertTrue(batchFile.exists());
    ExitCode exitCode = BatchModeModule.runBatch(batchFile);
    assert (exitCode == ExitCode.OK);

    // Confirm that a new file was made
    int filesCount = MZmineCore.getCurrentProject().getDataFiles().length;
    assert (filesCount > 0);
View Full Code Here


        .getModuleParameters(MzRangeCalculatorModule.class);

    if (myParameters == null)
      return null;

    ExitCode exitCode = myParameters.showSetupDialog();
    if (exitCode != ExitCode.OK)
      return null;

    String formula = myParameters.getParameter(
        MzRangeCalculatorParameters.formula).getValue();
View Full Code Here

      MZmineCore.getCurrentProject().removePeakList(peakList);

    File batchFile = new File(
        "src/test/resources/deconvolutedanalysis/massdetection_set1.xml");
    Assert.assertTrue(batchFile.exists());
    ExitCode exitCode = BatchModeModule.runBatch(batchFile);
    assert (exitCode == ExitCode.OK);

    assert (MZmineCore.getCurrentProject().getPeakLists().length > 0);

    PeakList peakList = MZmineCore.getCurrentProject().getPeakLists()[0];
View Full Code Here

    MZmineCore.initializeHeadless();

    File batchFile = new File(
        "src/test/resources/deconvolutedanalysis/massdetection_set2.xml");
    Assert.assertTrue(batchFile.exists());
    ExitCode exitCode = BatchModeModule.runBatch(batchFile);
    assert (exitCode == ExitCode.OK);

    assert (MZmineCore.getCurrentProject().getPeakLists().length > 0);

    PeakList peakList = MZmineCore.getCurrentProject().getPeakLists()[0];
View Full Code Here

    MZmineCore.initializeHeadless();

    File batchFile = new File(
        "src/test/resources/deconvolutedanalysis/massdetection_set3.xml");
    Assert.assertTrue(batchFile.exists());
    ExitCode exitCode = BatchModeModule.runBatch(batchFile);
    assert (exitCode == ExitCode.OK);

    assert (MZmineCore.getCurrentProject().getPeakLists().length > 0);

    PeakList peakList = MZmineCore.getCurrentProject().getPeakLists()[0];
View Full Code Here

  public static IsotopePattern showIsotopePredictionDialog() {

    ParameterSet parameters = MZmineCore.getConfiguration()
        .getModuleParameters(IsotopePatternCalculator.class);
    ExitCode exitCode = parameters.showSetupDialog();
    if (exitCode != ExitCode.OK)
      return null;

    String formula = parameters.getParameter(
        IsotopePatternCalculatorParameters.formula).getValue();
View Full Code Here

          .setValue(rtRange);
      parameters.getParameter(ManualPickerParameters.mzRange).setValue(
          mzRange);
    }

    ExitCode exitCode = parameters.showSetupDialog();

    if (exitCode != ExitCode.OK)
      return;

    ManualPickerTask task = new ManualPickerTask(peakListRow, dataFiles,
View Full Code Here

    String command = event.getActionCommand();

    if (command.equals("PROPERTIES")) {

      ExitCode exitCode = parameters.showSetupDialog();
      if (exitCode == ExitCode.OK) {
        int rowHeight = parameters.getParameter(
            PeakListTableParameters.rowHeight).getValue();
        table.setRowHeight(rowHeight);
View Full Code Here

  public static void exportIsotopePattern(PeakListRow row) {

    ParameterSet parameters = MZmineCore.getConfiguration()
        .getModuleParameters(IsotopePatternExportModule.class);

    ExitCode exitCode = parameters.showSetupDialog();
    if (exitCode != ExitCode.OK)
      return;

    File outputFile = parameters.getParameter(
        IsotopePatternExportParameters.outputFile).getValue();
View Full Code Here

  public static void exportMSMS(PeakListRow row) {

    ParameterSet parameters = MZmineCore.getConfiguration()
        .getModuleParameters(MSMSExportModule.class);

    ExitCode exitCode = parameters.showSetupDialog();
    if (exitCode != ExitCode.OK)
      return;

    File outputFile = parameters.getParameter(
        MSMSExportParameters.outputFile).getValue();
View Full Code Here

TOP

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

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.