Ejemplo n.º 1
0
        protected override void CreateScansets(Run run, int scanStart, int scanStop, int numScansSummed, int scanIncrement, bool processMSMS = false, bool sumConsecutiveMsMs = true)
        {
            ScanSetList = new List <ScanSet>();

            var minPossibleScanIndex = GetMinScan(run);
            var maxPossibleScanIndex = GetMaxScan(run);


            var numLowerScansToGet = (numScansSummed - 1) / 2;
            var numUpperScansToGet = (numScansSummed - 1) / 2;

            for (var currentScan = scanStart; currentScan <= scanStop; currentScan++)
            {
                //add lower scans
                var lowerScan    = currentScan - 1;
                var scansToSum   = new List <int>();
                var scansCounter = 0;
                while (lowerScan >= minPossibleScanIndex && numLowerScansToGet > scansCounter)
                {
                    scansToSum.Insert(0, lowerScan);
                    scansCounter++;

                    lowerScan--;
                }

                //add middle scan
                scansToSum.Add(currentScan);


                //add upper scans
                scansCounter = 0;
                var upperScan = currentScan + 1;
                while (upperScan <= maxPossibleScanIndex && numUpperScansToGet > scansCounter)
                {
                    scansToSum.Add(upperScan);
                    scansCounter++;
                    upperScan++;
                }

                var scanSet = new IMSScanSet(currentScan, scansToSum.ToArray());
                ScanSetList.Add(scanSet);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor that takes run, LC scan set, and an IMS scan set
 /// </summary>
 /// <param name="run"></param>
 /// <param name="lcScanSet"></param>
 /// <param name="scanSet"></param>
 public UIMFIsosResult(Run run, ScanSet lcScanSet, IMSScanSet scanSet)
 {
     Run        = run;
     ScanSet    = lcScanSet;
     IMSScanSet = scanSet;
 }
Ejemplo n.º 3
0
 public UIMFIsosResult(Run run, ScanSet lcScanset, IMSScanSet scanset)
 {
     this.Run        = run;
     this.ScanSet    = lcScanset;
     this.IMSScanSet = scanset;
 }