Beispiel #1
0
            protected override double?GetValue(TransitionGroupChromInfo chromInfo)
            {
                var retentionTimeValues = RetentionTimeValues.GetValues(chromInfo);

                if (!retentionTimeValues.HasValue)
                {
                    return(null);
                }
                retentionTimeValues = ScaleRetentionTimeValues(chromInfo.FileId, retentionTimeValues.Value);
                if (!retentionTimeValues.HasValue)
                {
                    return(null);
                }
                switch (RTValue)
                {
                case RTPeptideValue.Retention:
                    return(retentionTimeValues.Value.RetentionTime);

                case RTPeptideValue.FWHM:
                    return(retentionTimeValues.Value.Fwhm);

                case RTPeptideValue.FWB:
                    return(retentionTimeValues.Value.Fwb);
                }
                return(null);
            }
Beispiel #2
0
            protected override PointPair CreatePointPair(int iGroup, TransitionDocNode nodeTran, ref double maxY, ref double minY, int?resultIndex)
            {
                if (RTValue != RTPeptideValue.All)
                {
                    return(base.CreatePointPair(iGroup, nodeTran, ref maxY, ref minY, resultIndex));
                }

                if (!nodeTran.HasResults)
                {
                    return(RTPointPairMissing(iGroup));
                }

                var listTimes  = new List <double>();
                var listStarts = new List <double>();
                var listEnds   = new List <double>();
                var listFwhms  = new List <double>();

                foreach (var chromInfo in nodeTran.GetChromInfos(resultIndex))
                {
                    if (chromInfo.OptimizationStep == 0 && !chromInfo.IsEmpty)
                    {
                        var retentionTimeValues = ScaleRetentionTimeValues(chromInfo.FileId, RetentionTimeValues.GetValues(chromInfo));
                        if (retentionTimeValues.HasValue)
                        {
                            listTimes.Add(retentionTimeValues.Value.RetentionTime);
                            listStarts.Add(retentionTimeValues.Value.StartRetentionTime);
                            listEnds.Add(retentionTimeValues.Value.EndRetentionTime);
                            listFwhms.Add(retentionTimeValues.Value.Fwhm ?? 0);
                        }
                    }
                }

                return(CreatePointPair(iGroup, listTimes, listStarts, listEnds, listFwhms, ref maxY, ref minY));
            }
 public override RetentionTimeValues?GetRetentionTimes()
 {
     return(RetentionTimeValues.GetValues(ChromInfo));
 }