コード例 #1
0
 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));
 }
コード例 #2
0
        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));
        }
コード例 #3
0
ファイル: ChromInfoData.cs プロジェクト: laeubisoft/pwiz
 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;
 }
コード例 #4
0
 private TransitionChromInfoData(MeasuredResults measuredResults, int replicateIndex, ChromFileInfo chromFileInfo, TransitionChromInfo transitionChromInfo)
     : base(measuredResults, replicateIndex, chromFileInfo, transitionChromInfo)
 {
 }
コード例 #5
0
        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);
        }
コード例 #6
0
 public TransitionChromInfo FindMatchingTransitionChromInfo(TransitionChromInfo transitionChromInfo,
                                                            TransitionDocNode otherTransition)
 {
     return(FindMatchingTransitionChromInfo(transitionChromInfo.FileId, transitionChromInfo.OptimizationStep,
                                            otherTransition));
 }