예제 #1
0
        public static void GetXICs(ThermoSpectrum currentSpectrum, int specNumber, double rt)
        {
            // Not sure what this is doing
            List <LFPeptide> donePeptides = targetPeptides.Where(x => x.LastScan < specNumber).ToList();

            foreach (var pep in donePeptides)
            {
                pep.doneBuildingXIC = true;
            }

            List <LFPeptide> currPeptides = targetPeptides.Where(x => x.FirstScan <= specNumber && x.LastScan >= specNumber).ToList();

            foreach (var pep in currPeptides)
            {
                List <ThermoMzPeak> outPeaks = new List <ThermoMzPeak>();
                if (currentSpectrum.TryGetPeaks(pep.lookupRange, out outPeaks))
                {
                    var matchPeak = GetClosestPeak(outPeaks, pep.UserMZ);
                    var newRTPeak = new RTPeak(matchPeak, rt);
                    pep.XICLibrary.Add(newRTPeak);
                }
                else
                {
                    var newRTPeak = new RTPeak(pep.UserMZ, 0, rt);
                    pep.XICLibrary.Add(newRTPeak);
                }
            }
        }
예제 #2
0
 public bool Equals(RTPeak obj)
 {
     return(obj is RTPeak && Equals((RTPeak)obj));
 }
예제 #3
0
        public int CompareTo(Object other)
        {
            RTPeak otherPeak = (RTPeak)other;

            return(RT.CompareTo(otherPeak.RT));
        }
예제 #4
0
 public int CompareTo(RTPeak other)
 {
     return(RT.CompareTo(other.RT));
 }
예제 #5
0
 public void AddExperimentPeak(RTPeak peak)
 {
     XICExperiment.Add(peak);
 }
예제 #6
0
        public void AddExperimentPeak(MZPeak peak, double RT)
        {
            var newRTPeak = new RTPeak(peak, RT);

            XICExperiment.Add(newRTPeak);
        }
예제 #7
0
 public void AddLibraryPeak(RTPeak peak)
 {
     XICLibrary.Add(peak);
 }
예제 #8
0
        public void AddLibraryPeak(MZPeak peak, double RT)
        {
            var newRTPeak = new RTPeak(peak, RT);

            XICLibrary.Add(newRTPeak);
        }