Esempio n. 1
0
        public IsotopicProfile CloneIsotopicProfile()
        {
            var iso = new IsotopicProfile();

            iso.AverageMass                = AverageMass;
            iso.ChargeState                = ChargeState;
            iso.IntensityMostAbundant      = IntensityMostAbundant;
            iso.IntensityMostAbundantTheor = IntensityMostAbundantTheor;
            iso.MonoIsotopicMass           = MonoIsotopicMass;
            iso.MonoIsotopicPeakIndex      = MonoIsotopicPeakIndex;
            iso.MonoPeakMZ              = MonoPeakMZ;
            iso.MonoPlusTwoAbundance    = MonoPlusTwoAbundance;
            iso.MostAbundantIsotopeMass = MostAbundantIsotopeMass;
            iso.IsSaturated             = IsSaturated;
            iso.OriginalIntensity       = OriginalIntensity;
            iso.Peaklist = new List <MSPeak>();

            foreach (var mspeak in Peaklist)
            {
                var peak = new MSPeak(mspeak.XValue, mspeak.Height, mspeak.Width, mspeak.SignalToNoise);
                iso.Peaklist.Add(peak);
            }

            iso.Score           = Score;
            iso.ScoreCountBasis = ScoreCountBasis;

            return(iso);
        }
Esempio n. 2
0
        public MSPeak getMostIntensePeak()
        {
            if (_peaklist == null || _peaklist.Count == 0)
            {
                return(null);
            }

            var maxPeak = new MSPeak();

            foreach (var peak in _peaklist)
            {
                if (peak.Height >= maxPeak.Height)
                {
                    maxPeak = peak;
                }
            }
            return(maxPeak);
        }
Esempio n. 3
0
 public ScanSet()
 {
     BasePeak = new MSPeak(0);
     IndexValues = new List<int>();
 }