private PeptideDocNode.TransitionKey GetRatioTransitionKey(TransitionGroupDocNode transitionGroup, TransitionDocNode transitionDocNode) { return(new PeptideDocNode.TransitionKey(transitionGroup, transitionDocNode.Key(transitionGroup), RatioLabelType)); }
public float? CalcTransitionRatio(TransitionGroupDocNode nodeGroup, TransitionDocNode nodeTran, IsotopeLabelType labelTypeNum, IsotopeLabelType labelTypeDenom) { // Avoid 1.0 ratios for self-to-self if (ReferenceEquals(labelTypeNum, labelTypeDenom)) return null; float areaNum, areaDenom; var key = nodeTran.Key(nodeGroup); var keyNum = new TransitionKey(nodeGroup, key, labelTypeNum); var keyDenom = new TransitionKey(nodeGroup, key, labelTypeDenom); if (!TranAreas.TryGetValue(keyNum, out areaNum) || !TranAreas.TryGetValue(keyDenom, out areaDenom)) return null; return areaNum/areaDenom; }
public float? CalcTransitionGlobalRatio(TransitionGroupDocNode nodeGroup, TransitionDocNode nodeTran, IsotopeLabelType labelType) { if (GlobalStandardArea == 0) return null; float areaNum; var keyNum = new TransitionKey(nodeGroup, nodeTran.Key(nodeGroup), labelType); if (!TranAreas.TryGetValue(keyNum, out areaNum)) return null; return (float) (areaNum / GlobalStandardArea); }
public void AddChromInfo(TransitionGroupDocNode nodeGroup, TransitionDocNode nodeTran, TransitionChromInfo info) { if (info.IsEmpty) return; var key = new TransitionKey(nodeGroup, nodeTran.Key(nodeGroup), nodeGroup.TransitionGroup.LabelType); if (TranAreas.ContainsKey(key)) throw new InvalidDataException(String.Format(Resources.PeptideChromInfoCalculator_AddChromInfo_Duplicate_transition___0___found_for_peak_areas, nodeTran.Transition)); TranAreas.Add(key, info.Area); }
private PeptideDocNode.TransitionKey GetRatioTransitionKey(TransitionGroupDocNode transitionGroup, TransitionDocNode transitionDocNode) { return new PeptideDocNode.TransitionKey(transitionGroup, transitionDocNode.Key(transitionGroup), RatioLabelType); }
private PeptideDocNode.TransitionKey GetTransitionKey(TransitionDocNode nodeTran, TransitionGroupDocNode parent) { return(new PeptideDocNode.TransitionKey(parent, nodeTran.Key(parent), IsotopeLabelType.light)); }