Exemplo n.º 1
0
        public virtual void Run(int scan)
        {
            ISpectrum spectrum = spectrumRunner.GetSpectrum(scan);

            if (spectrum.GetMSnOrder() == 1)
            {
                monoRunner.SetMS1Spectrum(spectrum);
            }
            else if ((spectrum as ISpectrumMSn).GetActivation() == TypeOfMSActivation.CID)
            {
                specProcessor.Process(spectrum);

                List <IGlycoPeptide> glycoPeptides = null;
                if (monoRunner.GetMS1Spectrum() == null)
                {
                    glycoPeptides = precursorMatcher.Match(spectrum);
                }
                else
                {
                    monoRunner.Run(spectrum as ISpectrumMSn);
                    glycoPeptides = precursorMatcher.Match(spectrum, monoRunner.GetMonoMass());
                }

                searchWorker.Search(spectrum, glycoPeptides);
                resultTable[scan] = searchWorker.GetResult();
            }
        }
Exemplo n.º 2
0
        public virtual void Run(int scan)
        {
            ISpectrum spectrum = spectrumRunner.GetSpectrum(scan);

            if (spectrum.GetMSnOrder() == 1)
            {
                monoRunner.SetMS1Spectrum(spectrum);
            }
            else if ((spectrum as ISpectrumMSn).GetActivation() == TypeOfMSActivation.ETD)
            {
                specProcessor.Process(spectrum);

                List <IGlycoPeptide> glycoPeptides = null;
                if (monoRunner.GetMS1Spectrum() == null)
                {
                    glycoPeptides = precursorMatcher.Match(spectrum);
                }
                else
                {
                    monoRunner.Run(spectrum as ISpectrumMSn);
                    glycoPeptides = precursorMatcher.Match(spectrum, monoRunner.GetMonoMass());
                }

                searchWorker.Search(spectrum, glycoPeptides);
                resultTable[scan] = searchWorker.GetResult();
                (discover as IGlycoPeptideScoreResultFDR).AddResult(resultTable[scan]);

                //fdr
                double mass = (spectrum as ISpectrumMSn).GetParentMZ() + pesudoMZ / (spectrum as ISpectrumMSn).GetParentCharge();
                glycoPeptides = precursorMatcher.Match(spectrum, mass);

                searchWorker.Search(spectrum, glycoPeptides);
                resultFDRTable[scan] = searchWorker.GetResult();
                (discover as IGlycoPeptideScoreResultFDR).AddFDRResult(resultFDRTable[scan]);
            }
        }