private TransitionDocNode CreateTransitionNode(IonType type, int cleavageOffset, int charge, double massH, TransitionLosses losses, IDictionary <double, LibraryRankedSpectrumInfo.RankedMI> transitionRanks, CustomIon customIon = null) { Transition transition = new Transition(this, type, cleavageOffset, 0, charge, null, customIon); var info = TransitionDocNode.GetLibInfo(transition, Transition.CalcMass(massH, losses), transitionRanks); return(new TransitionDocNode(transition, losses, massH, null, info)); }
private TransitionDocNode CreateTransitionNode(int massIndex, double precursorMassH, TransitionIsotopeDistInfo isotopeDistInfo, TransitionLosses losses, IDictionary <double, LibraryRankedSpectrumInfo.RankedMI> transitionRanks, CustomIon customIon = null) { Transition transition = new Transition(this, massIndex, customIon); var info = isotopeDistInfo == null?TransitionDocNode.GetLibInfo(transition, Transition.CalcMass(precursorMassH, losses), transitionRanks) : null; return(new TransitionDocNode(transition, losses, precursorMassH, isotopeDistInfo, info)); }