From 2cf37b7d080e1e6e187deda78721b2ef5e6305a0 Mon Sep 17 00:00:00 2001 From: alchemistmatt Date: Fri, 9 Jul 2021 20:51:18 -0700 Subject: [PATCH] Update error message and add comments --- LiquidBackend/Util/GlobalWorkflow.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/LiquidBackend/Util/GlobalWorkflow.cs b/LiquidBackend/Util/GlobalWorkflow.cs index 983cac6..8f3c95e 100644 --- a/LiquidBackend/Util/GlobalWorkflow.cs +++ b/LiquidBackend/Util/GlobalWorkflow.cs @@ -316,7 +316,7 @@ public static List RunGlobalWorkflow(IEnumerable var fragScanPairs = GetSortedMsMsScans(lcmsRun); if (fragScanPairs.Count == 0) - throw new SystemException("File has not MS/MS spectra"); + throw new SystemException("File has no MS/MS spectra"); var scanPairCount = fragScanPairs.Count; @@ -672,6 +672,11 @@ internal static List GetSortedMsMsScans(LcMsRun lcmsRun) private class FragmentationScanComparer : IComparer { + /// + /// Sort by m/z, then place HCD scans before other scans + /// + /// + /// public int Compare(FragmentationScanInfo x, FragmentationScanInfo y) { if (x.PrecursorMz > y.PrecursorMz)