public bool Equals(TransitionChromInfo other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(base.Equals(other) && Equals(other.MassError, MassError) && other.RetentionTime == RetentionTime && other.StartRetentionTime == StartRetentionTime && other.EndRetentionTime == EndRetentionTime && other.Area == Area && other.BackgroundArea == BackgroundArea && other.Height == Height && other.Fwhm == Fwhm && other.IsFwhmDegenerate.Equals(IsFwhmDegenerate) && Equals(other.IsTruncated, IsTruncated) && Equals(other.Identified, Identified) && other.Rank == Rank && ArrayUtil.EqualsDeep(other.Ratios, Ratios) && other.OptimizationStep.Equals(OptimizationStep) && other.Annotations.Equals(Annotations) && other.UserSet.Equals(UserSet)); }
public double?GetTransitionValue(NormalizationMethod normalizationMethod, PeptideDocNode peptideDocNode, TransitionDocNode transitionDocNode, TransitionChromInfo transitionChromInfo) { if (peptideDocNode == null) { return(null); } var transitionGroupDocNode = (TransitionGroupDocNode)peptideDocNode.FindNode(transitionDocNode.Transition.Group); if (transitionGroupDocNode == null) { return(null); } return(GetTransitionValue(normalizationMethod, peptideDocNode, transitionGroupDocNode, transitionDocNode, transitionChromInfo)); }
private TransitionChromInfoData(MeasuredResults measuredResults, int replicateIndex, ChromFileInfo chromFileInfo, TransitionChromInfo transitionChromInfo, PeptideDocNode peptideDocNode, TransitionGroupDocNode transitionGroupDocNode, TransitionDocNode transitionDocNode) : base(measuredResults, replicateIndex, chromFileInfo, transitionChromInfo, peptideDocNode, transitionGroupDocNode) { TransitionDocNode = transitionDocNode; }
private TransitionChromInfoData(MeasuredResults measuredResults, int replicateIndex, ChromFileInfo chromFileInfo, TransitionChromInfo transitionChromInfo) : base(measuredResults, replicateIndex, chromFileInfo, transitionChromInfo) { }
public double?GetTransitionValue(NormalizationMethod normalizationMethod, PeptideDocNode peptideDocNode, TransitionGroupDocNode transitionGroupDocNode, TransitionDocNode transitionDocNode, TransitionChromInfo transitionChromInfo) { if (!transitionDocNode.IsQuantitative(Document.Settings)) { return(null); } if (transitionChromInfo == null || transitionChromInfo.IsEmpty) { return(null); } if (TryGetDenominator(normalizationMethod, transitionGroupDocNode.LabelType, transitionChromInfo.FileId, out double?denominator)) { return(transitionChromInfo.Area / denominator); } if (normalizationMethod is NormalizationMethod.RatioToLabel ratioToLabel) { if (ratioToLabel.IsotopeLabelTypeName == transitionGroupDocNode.LabelType.Name) { return(null); } if (SimpleRatios) { return(null); } var otherTransitionGroup = FindMatchingTransitionGroup(ratioToLabel, peptideDocNode, transitionGroupDocNode); if (otherTransitionGroup == null) { return(null); } var otherTransition = FindMatchingTransition(transitionGroupDocNode, transitionDocNode, otherTransitionGroup); if (otherTransition == null) { return(null); } if (!otherTransition.IsQuantitative(Document.Settings)) { return(null); } var otherChrominfo = FindMatchingTransitionChromInfo(transitionChromInfo, otherTransition); if (otherChrominfo == null || otherChrominfo.IsEmpty) { return(null); } return(transitionChromInfo.Area / otherChrominfo.Area); } return(null); }
public TransitionChromInfo FindMatchingTransitionChromInfo(TransitionChromInfo transitionChromInfo, TransitionDocNode otherTransition) { return(FindMatchingTransitionChromInfo(transitionChromInfo.FileId, transitionChromInfo.OptimizationStep, otherTransition)); }