clarify ADAP mass list  error message
@@ -22,6 +22,7 @@ package io.github.mzmine.modules.dataprocessing.featdet_adapchromatogrambuilder;
import com.google.common.collect.Range;
import com.google.common.collect.RangeMap;
import com.google.common.collect.TreeRangeMap;
+import io.github.mzmine.datamodel.IMSRawDataFile;
import io.github.mzmine.datamodel.MZmineProject;
import io.github.mzmine.datamodel.RawDataFile;
import io.github.mzmine.datamodel.Scan;
@@ -189,9 +190,16 @@ public class ModularADAPChromatogramBuilderTask extends AbstractTask {
scan = scanData.nextScan();
} catch (MissingMassListException e) {
setStatus(TaskStatus.ERROR);
- setErrorMessage(
- "Scan #" + scanData.getCurrentScan().getScanNumber() + " from " + dataFile.getName()
- + " does not have a mass list. Pleas run \"Raw data methods\" -> \"Mass detection\".");
+ StringBuilder b = new StringBuilder("Scan #");
+ b.append(scanData.getCurrentScan().getScanNumber()).append(" from ");
+ b.append(dataFile.getName());
+ b.append(
+ " does not have a mass list. Please run \"Raw data methods\" -> \"Mass detection\"");
+ if (dataFile instanceof IMSRawDataFile) {
+ b.append("\nIMS files require mass detection on the frame level (Scan type = \"Frames ");
+ b.append("only\" or \"All scan types\"");
+ }
+ setErrorMessage(b.toString());
e.printStackTrace();
return;
}
