Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Rserve integration 6 #39

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

import net.sf.mzmine.datamodel.MZmineProject;
import net.sf.mzmine.datamodel.PeakList;
import net.sf.mzmine.main.MZmineCore;
import net.sf.mzmine.modules.MZmineModuleCategory;
import net.sf.mzmine.modules.MZmineRunnableModule;
import net.sf.mzmine.parameters.ParameterSet;
Expand All @@ -51,11 +50,16 @@ public class HeatMapModule implements MZmineRunnableModule {
@Nonnull
public ExitCode runModule(@Nonnull MZmineProject project,
@Nonnull ParameterSet parameters, @Nonnull Collection<Task> tasks) {
PeakList[] selectedDatasets = MZmineCore.getDesktop()
.getSelectedPeakLists();
HeatMapTask heatMapTask = new HeatMapTask(project, selectedDatasets[0],

PeakList selectedDataset = parameters
.getParameter(HeatMapParameters.peakLists).getValue()
.getMatchingPeakLists()[0];

HeatMapTask heatMapTask = new HeatMapTask(project, selectedDataset,
parameters);

tasks.add(heatMapTask);

return ExitCode.OK;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,16 @@
import net.sf.mzmine.parameters.parametertypes.ComboParameter;
import net.sf.mzmine.parameters.parametertypes.FileNameParameter;
import net.sf.mzmine.parameters.parametertypes.IntegerParameter;
import net.sf.mzmine.parameters.parametertypes.PeakListsParameter;
import net.sf.mzmine.util.ExitCode;

public class HeatMapParameters extends SimpleParameterSet {

public static final String[] fileTypes = { "pdf", "svg", "png", "fig" };

public static final PeakListsParameter peakLists = new PeakListsParameter(
1, 1);

public static final FileNameParameter fileName = new FileNameParameter(
"Output name", "Select the path and name of the output file.");
public static final ComboParameter<String> fileTypeSelection = new ComboParameter<String>(
Expand Down Expand Up @@ -83,10 +88,10 @@ public class HeatMapParameters extends SimpleParameterSet {
"Row margin", "Row margin of the heat map", 10);

public HeatMapParameters() {
super(new Parameter[] { fileName, fileTypeSelection, selectionData,
referenceGroup, useIdenfiedRows, usePeakArea, scale, log,
showControlSamples, plegend, star, height, width, columnMargin,
rowMargin });
super(new Parameter[] { peakLists, fileName, fileTypeSelection,
selectionData, referenceGroup, useIdenfiedRows, usePeakArea,
scale, log, showControlSamples, plegend, star, height, width,
columnMargin, rowMargin });
}

@Override
Expand Down
Loading