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)); }
protected virtual PointPair CreatePointPair(int iGroup, TransitionDocNode nodeTran, ref double maxY, ref double minY, int?resultIndex) { if (!nodeTran.HasResults) { return(PointPairMissing(iGroup)); } var listValues = new List <double>(); foreach (var chromInfo in nodeTran.GetChromInfos(resultIndex)) { if (chromInfo.OptimizationStep == 0 && !chromInfo.IsEmpty) { listValues.Add(GetValue(chromInfo)); } } return(CreatePointPair(iGroup, listValues, ref maxY, ref minY)); }
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); }
protected virtual PointPair CreatePointPair(int iGroup, TransitionDocNode nodeTran, ref double maxY, ref double minY, int? resultIndex) { if (!nodeTran.HasResults) return PointPairMissing(iGroup); var listValues = new List<double>(); foreach (var chromInfo in nodeTran.GetChromInfos(resultIndex)) { if (chromInfo.OptimizationStep == 0 && !chromInfo.IsEmpty) listValues.Add(GetValue(chromInfo)); } return CreatePointPair(iGroup, listValues, ref maxY); }