コード例 #1
0
            protected override double?GetValue(TransitionGroupChromInfo chromInfo)
            {
                var retentionTimeValues = RetentionTimeValues.FromTransitionGroupChromInfo(chromInfo);

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

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

                case RTPeptideValue.FWB:
                    return(retentionTimeValues.Fwb);
                }
                return(null);
            }
コード例 #2
0
ファイル: ChromInfoData.cs プロジェクト: laeubisoft/pwiz
 public override RetentionTimeValues GetRetentionTimes()
 {
     return(RetentionTimeValues.FromTransitionGroupChromInfo(ChromInfo));
 }
コード例 #3
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.FromTransitionGroupChromInfo(chromInfo));
                        if (retentionTimeValues == null)
                        {
                            continue;
                        }
                        listTimes.Add(retentionTimeValues.RetentionTime);
                        listStarts.Add(retentionTimeValues.StartRetentionTime);
                        listEnds.Add(retentionTimeValues.EndRetentionTime);
                        if (retentionTimeValues.Fwhm.HasValue)
                        {
                            listFwhms.Add(retentionTimeValues.Fwhm.Value);
                        }
                    }
                }

                return(CreatePointPair(iGroup, listTimes, listStarts, listEnds, listFwhms, ref maxY, ref minY));
            }