예제 #1
0
        private static List <int> GetUpperScans(Run run, int startingScan, int currentMSLevel, int numUpperScansToGet)
        {
            var currentScan = startingScan + 1;
            var scans       = new List <int>();

            var scansCounter   = 0;
            var scanUpperLimit = run.GetMaxPossibleLCScanNum();

            while (currentScan <= scanUpperLimit && numUpperScansToGet > scansCounter)
            {
                if (run.GetMSLevel(currentScan) == currentMSLevel)
                {
                    scans.Add(currentScan);
                    scansCounter++;
                }
                currentScan++;
            }
            return(scans);
        }
예제 #2
0
 protected virtual int GetMaxScan(Run run)
 {
     return(run.GetMaxPossibleLCScanNum());
 }