use of net.sf.mzmine.modules.peaklistmethods.dataanalysis.rtmzplots.RTMZAnalyzerWindow in project mzmine2 by mzmine.
the class LogratioPlotModule method runModule.
@Override
@Nonnull
public ExitCode runModule(@Nonnull MZmineProject project, @Nonnull ParameterSet parameters, @Nonnull Collection<Task> tasks) {
PeakList[] peakLists = parameters.getParameter(CVParameters.peakLists).getValue().getMatchingPeakLists();
for (PeakList pl : peakLists) {
// Create dataset & paint scale
AbstractXYZDataset dataset = new LogratioDataset(pl, parameters);
InterpolatingLookupPaintScale paintScale = new InterpolatingLookupPaintScale();
paintScale.add(-1.00, new Color(0, 255, 0));
paintScale.add(0.00, new Color(0, 0, 0));
paintScale.add(1.00, new Color(255, 0, 0));
// Create & show window
RTMZAnalyzerWindow window = new RTMZAnalyzerWindow(dataset, pl, paintScale);
window.setVisible(true);
}
return ExitCode.OK;
}
use of net.sf.mzmine.modules.peaklistmethods.dataanalysis.rtmzplots.RTMZAnalyzerWindow in project mzmine2 by mzmine.
the class CVPlotModule method runModule.
@Override
@Nonnull
public ExitCode runModule(@Nonnull MZmineProject project, @Nonnull ParameterSet parameters, @Nonnull Collection<Task> tasks) {
PeakList[] peakLists = parameters.getParameter(CVParameters.peakLists).getValue().getMatchingPeakLists();
for (PeakList pl : peakLists) {
// Create dataset & paint scale
AbstractXYZDataset dataset = new CVDataset(pl, parameters);
InterpolatingLookupPaintScale paintScale = new InterpolatingLookupPaintScale();
paintScale.add(0.00, new Color(0, 0, 0));
paintScale.add(0.15, new Color(102, 255, 102));
paintScale.add(0.30, new Color(51, 102, 255));
paintScale.add(0.45, new Color(255, 0, 0));
// Create & show window
RTMZAnalyzerWindow window = new RTMZAnalyzerWindow(dataset, pl, paintScale);
window.setVisible(true);
}
return ExitCode.OK;
}
Aggregations