public int CompareTo(object obj)
        {
            if (null == obj)
            {
                return(1);
            }

            if (!(obj is IIdentifiedSpectrumBase))
            {
                throw new ArgumentException(MyConvert.Format("Parameter obj is not IIdentifiedSpectrumBase, it's {0}.", obj.GetType()));
            }

            IIdentifiedSpectrumBase other = obj as IIdentifiedSpectrumBase;

            return(Sequence.CompareTo(other.Sequence));
        }
Beispiel #2
0
        private void DoSetSpectrum(IIdentifiedSpectrumBase spectrum)
        {
            if (this.spectrum == spectrum)
            {
                return;
            }

            if (null != this.spectrum)
            {
                this.spectrum.RemovePeptide(this);
            }

            this.spectrum = spectrum;
            if (spectrum != null)
            {
                spectrum.AddPeptide(this);
            }
        }
Beispiel #3
0
        public IdentifiedPeptide(IIdentifiedSpectrumBase spectrum)
        {
            DoSetSpectrum(spectrum);

            this.SiteProbability = string.Empty;
        }