/// <summary> /// In the case of small molecule transitions specified by mass only, position within /// the parent's list of transitions is the only meaningful key. So we need to know our parent. /// </summary> public void AddTransition(TransitionDocNode nodeTran, TransitionGroupDocNode parent) { var tranKey = nodeTran.EquivalentKey(parent); if (!_dictTransitionCount.ContainsKey(tranKey)) { _dictTransitionCount.Add(tranKey, 0); } _dictTransitionCount[tranKey]++; }
public bool IsFullyMatched(TransitionDocNode nodeTran, TransitionGroupDocNode parent) { int count; if (!_dictTransitionCount.TryGetValue(nodeTran.EquivalentKey(parent), out count)) { return(true); } return(count == _labelTypeSet.Count); }
public bool IsFullyMatched(TransitionDocNode nodeTran, TransitionGroupDocNode parent) { int count; if (!_dictTransitionCount.TryGetValue(nodeTran.EquivalentKey(parent), out count)) return true; return count == _labelTypeSet.Count; }
/// <summary> /// In the case of small molecule transitions specified by mass only, position within /// the parent's list of transitions is the only meaningful key. So we need to know our parent. /// </summary> public void AddTransition(TransitionDocNode nodeTran, TransitionGroupDocNode parent) { var tranKey = nodeTran.EquivalentKey(parent); if (!_dictTransitionCount.ContainsKey(tranKey)) _dictTransitionCount.Add(tranKey, 0); _dictTransitionCount[tranKey]++; }