예제 #1
0
        private static string GetResultsText(TransitionDocNode nodeTran, int index, int indexRatio)
        {
            int?   rank  = nodeTran.GetPeakRank(index);
            string label = (rank.HasValue && rank > 0 ? string.Format(Resources.TransitionTreeNode_GetResultsText__0__, rank) : string.Empty);
            float? ratio = nodeTran.GetPeakAreaRatio(index, indexRatio);

            if (!ratio.HasValue)
            {
                return(label);
            }

            return(string.Format(Resources.TransitionTreeNode_GetResultsText__0__ratio__1__, label, MathEx.RoundAboveZero(ratio.Value, 2, 4)));
        }
예제 #2
0
        private static string GetResultsText(TransitionDocNode nodeTran, int index, int indexRatio)
        {
            int?   rank  = nodeTran.GetPeakRankByLevel(index);
            string label = string.Empty;

            if (rank.HasValue && rank > 0)
            {
                // Mark MS1 transition ranks with "i" for isotope
                string rankText = (nodeTran.IsMs1 ? @"i " : string.Empty) + rank;
                label = string.Format(Resources.TransitionTreeNode_GetResultsText__0__, rankText);
            }
            float?ratio = nodeTran.GetPeakAreaRatio(index, indexRatio);

            if (!ratio.HasValue)
            {
                return(label);
            }

            return(string.Format(Resources.TransitionTreeNode_GetResultsText__0__ratio__1__, label, MathEx.RoundAboveZero(ratio.Value, 2, 4)));
        }
예제 #3
0
        private static string GetResultsText(TransitionDocNode nodeTran, int index, int indexRatio)
        {
            int? rank = nodeTran.GetPeakRank(index);
            string label = (rank.HasValue && rank > 0 ? string.Format(Resources.TransitionTreeNode_GetResultsText__0__, rank) : string.Empty);
            float? ratio = nodeTran.GetPeakAreaRatio(index, indexRatio);
            if (!ratio.HasValue)
                return label;

            return string.Format(Resources.TransitionTreeNode_GetResultsText__0__ratio__1__, label, MathEx.RoundAboveZero(ratio.Value, 2, 4));
        }