Beispiel #1
0
        public bool Load(ChromDataProvider provider, Target modifiedSequence, Color peptideColor)
        {
            ChromExtra      extra;
            TimeIntensities timeIntensities;
            bool            result = provider.GetChromatogram(
                ProviderId, modifiedSequence, peptideColor,
                out extra, out timeIntensities);

            Extra           = extra;
            TimeIntensities = RawTimeIntensities = timeIntensities;
            if (result && RawTimes.Any())
            {
                Key = Key.ChangeOptionalTimes(RawTimes.First(), RawTimes.Last(), RawCenterOfGravityTime);
            }
            return(result);
        }
Beispiel #2
0
        public bool Load(ChromDataProvider provider, string modifiedSequence, Color peptideColor)
        {
            ChromExtra extra;

            float[] times, intensities;
            float[] massErrors;
            int[]   scanIds;
            bool    result = provider.GetChromatogram(
                ProviderId, modifiedSequence, peptideColor,
                out extra, out times, out scanIds, out intensities, out massErrors);

            Extra          = extra;
            RawTimes       = Times = times;
            RawIntensities = Intensities = intensities;
            RawMassErrors  = massErrors;
            RawScanIds     = ScanIndexes = scanIds;
            if (result)
            {
                Key = Key.ChangeOptionalTimes(RawTimes.First(), RawTimes.Last(), RawCenterOfGravityTime);
            }
            return(result);
        }