Skip to content

Commit

Permalink
Update error message and add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alchemistmatt committed Jul 10, 2021
1 parent 8b7626f commit 2cf37b7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion LiquidBackend/Util/GlobalWorkflow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public static List<LipidGroupSearchResult> RunGlobalWorkflow(IEnumerable<Lipid>
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;

Expand Down Expand Up @@ -672,6 +672,11 @@ internal static List<ScanPair> GetSortedMsMsScans(LcMsRun lcmsRun)

private class FragmentationScanComparer : IComparer<FragmentationScanInfo>
{
/// <summary>
/// Sort by m/z, then place HCD scans before other scans
/// </summary>
/// <param name="x"></param>
/// <param name="y"></param>
public int Compare(FragmentationScanInfo x, FragmentationScanInfo y)
{
if (x.PrecursorMz > y.PrecursorMz)
Expand Down

0 comments on commit 2cf37b7

Please sign in to comment.