use of net.sf.mzmine.parameters.dialogs.ParameterSetupDialog in project mzmine2 by mzmine.
the class ChromatogramBuilderParameters method showSetupDialog.
public ExitCode showSetupDialog(Window parent, boolean valueCheckRequired) {
String message = "<html><b>Note:</b> starting with MZmine 2.39, this module is considered deprecated <br>" + "and will be removed in future MZmine versions. Please use the <b>ADAP Chromatogram Builder</b>,<br>" + "which is much faster and generates better results.<br>" + "Contact the developers if you have any questions or concerns.</html>";
ParameterSetupDialog dialog = new ParameterSetupDialog(parent, valueCheckRequired, this, message);
dialog.setVisible(true);
return dialog.getExitCode();
}
use of net.sf.mzmine.parameters.dialogs.ParameterSetupDialog in project mzmine2 by mzmine.
the class PeakFilterParameters method showSetupDialog.
@Override
public ExitCode showSetupDialog(Window parent, boolean valueCheckRequired) {
// Update the parameter choices
UserParameter<?, ?>[] newChoices = MZmineCore.getProjectManager().getCurrentProject().getParameters();
String[] choices;
if (newChoices == null || newChoices.length == 0) {
choices = new String[1];
choices[0] = "No parameters defined";
} else {
choices = new String[newChoices.length + 1];
choices[0] = "Ignore groups";
for (int i = 0; i < newChoices.length; i++) {
choices[i + 1] = "Filtering by " + newChoices[i].getName();
}
}
ParameterSetupDialog dialog = new ParameterSetupDialog(parent, valueCheckRequired, this);
dialog.setVisible(true);
return dialog.getExitCode();
}
use of net.sf.mzmine.parameters.dialogs.ParameterSetupDialog in project mzmine2 by mzmine.
the class SignificanceParameters method showSetupDialog.
@Override
public ExitCode showSetupDialog(Window parent, boolean valueCheckRequired) {
// Update the parameter choices
MZmineProject project = MZmineCore.getProjectManager().getCurrentProject();
UserParameter[] newChoices = project.getParameters();
getParameter(SignificanceParameters.selectionData).setChoices(newChoices);
// Add a message
String message = "<html>To view the results of ANOVA test, export the feature list to CSV file " + "and look for column ANOVA_P_VALUE. Click Help for details.</html>";
ParameterSetupDialog dialog = new ParameterSetupDialog(parent, valueCheckRequired, this, message);
dialog.setVisible(true);
return dialog.getExitCode();
}
use of net.sf.mzmine.parameters.dialogs.ParameterSetupDialog in project mzmine2 by mzmine.
the class SiriusExportParameters method showSetupDialog.
public ExitCode showSetupDialog(Window parent, boolean valueCheckRequired) {
String message = "<html>SIRIUS Module Disclaimer:" + "<ul>" + "<li>If you use the SIRIUS export module, cite <a href=\"https://bmcbioinformatics.biomedcentral.com/articles/10.1186/1471-2105-11-395\">MZmine2 paper</a> and the following article:<br>" + "<a href=\"http://dx.doi.org/10.1038/s41592-019-0344-8\"> K. Dührkop, et al. “Sirius 4: a rapid tool for turning tandem mass spectra into metabolite structure information”, Nature Methods, 2019.</a>" + "<li>Sirius can be downloaded at the following address: <a href=\"https://bio.informatik.uni-jena.de/software/sirius/\">https://bio.informatik.uni-jena.de/software/sirius/</a>" + "<li>Sirius results can be mapped into <a href=\"http://gnps.ucsd.edu/\">GNPS</a> molecular networks. <a href=\"https://bix-lab.ucsd.edu/display/Public/Mass+spectrometry+data+pre-processing+for+GNPS\">See the documentation</a>." + "</ul>";
ParameterSetupDialog dialog = new ParameterSetupDialog(parent, valueCheckRequired, this, message);
dialog.setVisible(true);
return dialog.getExitCode();
}
use of net.sf.mzmine.parameters.dialogs.ParameterSetupDialog in project mzmine2 by mzmine.
the class LocalSpectralDBSearchParameters method showSetupDialog.
@Override
public ExitCode showSetupDialog(Window parent, boolean valueCheckRequired) {
if ((getParameters() == null) || (getParameters().length == 0))
return ExitCode.OK;
ParameterSetupDialog dialog = new ParameterSetupDialog(parent, valueCheckRequired, this);
int level = getParameter(msLevel).getValue() == null ? 2 : getParameter(msLevel).getValue();
IntegerComponent msLevelComp = (IntegerComponent) dialog.getComponentForParameter(msLevel);
JComponent mzTolPrecursor = dialog.getComponentForParameter(mzTolerancePrecursor);
mzTolPrecursor.setEnabled(level > 1);
msLevelComp.addDocumentListener(new DelayedDocumentListener(e -> {
try {
int level2 = Integer.parseInt(msLevelComp.getText());
mzTolPrecursor.setEnabled(level2 > 1);
} catch (Exception ex) {
// do nothing user might be still typing
mzTolPrecursor.setEnabled(false);
}
}));
dialog.setVisible(true);
return dialog.getExitCode();
}
Aggregations