Example #1
0
            protected virtual PointPair CreatePointPair(int iGroup, TransitionGroupDocNode nodeGroup, ref double maxY, ref double minY, int?resultIndex)
            {
                if (!nodeGroup.HasResults)
                {
                    return(PointPairMissing(iGroup));
                }

                var listValues = new List <double>();

                foreach (var chromInfo in nodeGroup.GetChromInfos(resultIndex))
                {
                    double?value = GetValue(chromInfo);
                    if (chromInfo.OptimizationStep == 0 && value.HasValue)
                    {
                        listValues.Add(value.Value);
                    }
                }

                return(CreatePointPair(iGroup, listValues, ref maxY, ref minY));
            }
Example #2
0
            protected override PointPair CreatePointPair(int iGroup, TransitionGroupDocNode nodeGroup, ref double maxY, ref double minY, int?resultIndex)
            {
                if (RTValue != RTPeptideValue.All)
                {
                    return(base.CreatePointPair(iGroup, nodeGroup, ref maxY, ref minY, resultIndex));
                }

                if (!nodeGroup.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 nodeGroup.GetChromInfos(resultIndex))
                {
                    if (chromInfo.OptimizationStep == 0)
                    {
                        var retentionTimeValues = ScaleRetentionTimeValues(chromInfo.FileId, RetentionTimeValues.GetValues(chromInfo));
                        if (!retentionTimeValues.HasValue)
                        {
                            continue;
                        }
                        listTimes.Add(retentionTimeValues.Value.RetentionTime);
                        listStarts.Add(retentionTimeValues.Value.StartRetentionTime);
                        listEnds.Add(retentionTimeValues.Value.EndRetentionTime);
                        if (retentionTimeValues.Value.Fwhm.HasValue)
                        {
                            listFwhms.Add(retentionTimeValues.Value.Fwhm.Value);
                        }
                    }
                }

                return(CreatePointPair(iGroup, listTimes, listStarts, listEnds, listFwhms, ref maxY, ref minY));
            }
            protected override PointPair CreatePointPair(int iGroup, TransitionGroupDocNode nodeGroup, ref double maxY, ref double minY, int? resultIndex)
            {
                if (RTValue != RTPeptideValue.All)
                    return base.CreatePointPair(iGroup, nodeGroup, ref maxY, ref minY, resultIndex);

                if (!nodeGroup.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 nodeGroup.GetChromInfos(resultIndex))
                {
                    if (chromInfo.OptimizationStep == 0)
                    {
                        var retentionTimeValues = ScaleRetentionTimeValues(chromInfo.FileId, RetentionTimeValues.GetValues(chromInfo));
                        if (!retentionTimeValues.HasValue)
                        {
                            continue;
                        }
                        listTimes.Add(retentionTimeValues.Value.RetentionTime);
                        listStarts.Add(retentionTimeValues.Value.StartRetentionTime);
                        listEnds.Add(retentionTimeValues.Value.EndRetentionTime);
                        if (retentionTimeValues.Value.Fwhm.HasValue)
                        {
                            listFwhms.Add(retentionTimeValues.Value.Fwhm.Value);
                        }
                    }
                }

                return CreatePointPair(iGroup, listTimes, listStarts, listEnds, listFwhms, ref maxY, ref minY);
            }
            protected virtual PointPair CreatePointPair(int iGroup, TransitionGroupDocNode nodeGroup, ref double maxY, ref double minY, int? resultIndex)
            {
                if (!nodeGroup.HasResults)
                    return PointPairMissing(iGroup);

                var listValues = new List<double>();
                foreach (var chromInfo in nodeGroup.GetChromInfos(resultIndex))
                {
                    double? value = GetValue(chromInfo);
                    if (chromInfo.OptimizationStep == 0 && value.HasValue)
                        listValues.Add(value.Value);
                }

                return CreatePointPair(iGroup, listValues, ref maxY);
            }