use of net.sf.mzmine.modules.visualization.tic.TICDataSet in project mzmine2 by mzmine.
the class XICManualPickerDialog method setMassRange.
private void setMassRange() {
Range<Double> r = mzRangeComp.getValue();
if (r == null || r.upperEndpoint() < r.lowerEndpoint()) {
MZmineCore.getDesktop().displayErrorMessage(null, "Manual integration", "Mass range invalid.");
return;
}
parameters.getParameter(XICManualPickerParameters.mzRange).setValue(r);
ScanSelection sel = new ScanSelection(rawDataFile.getDataRTRange(), 1);
Scan[] scans = sel.getMatchingScans(rawDataFile);
TICDataSet ds = new TICDataSet(dataSet.getDataFile(), scans, r, null, TICPlotType.TIC);
getTicPlot().removeAllTICDataSets();
getTicPlot().addTICDataset(ds);
}
Aggregations