Search in sources :

Example 1 with TICDataSet

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);
}
Also used : ScanSelection(net.sf.mzmine.parameters.parametertypes.selectors.ScanSelection) TICDataSet(net.sf.mzmine.modules.visualization.tic.TICDataSet) Scan(net.sf.mzmine.datamodel.Scan)

Aggregations

Scan (net.sf.mzmine.datamodel.Scan)1 TICDataSet (net.sf.mzmine.modules.visualization.tic.TICDataSet)1 ScanSelection (net.sf.mzmine.parameters.parametertypes.selectors.ScanSelection)1