Пример #1
0
        public override string ToStringWithDetailsAsRow()
        {
            var sb = new StringBuilder();

            var delim = "\t";

            sb.Append(this.TargetID);
            sb.Append(delim);
            sb.Append(this.ChargeState);
            sb.Append(delim);
            sb.Append(this.ScanLC);
            sb.Append(delim);
            sb.Append(this.ScanLCStart);
            sb.Append(delim);
            sb.Append(this.ScanLCEnd);
            sb.Append(delim);
            sb.Append(this.NET.ToString("0.0000"));
            sb.Append(delim);
            sb.Append(this.NumChromPeaksWithinTol);
            sb.Append(delim);
            sb.Append(this.MonoMass.ToString("0.00000"));
            sb.Append(delim);
            sb.Append(this.MonoMZ.ToString("0.00000"));
            sb.Append(delim);
            sb.Append(this.FitScore.ToString("0.0000"));
            sb.Append(delim);
            sb.Append(FitScoreLabeledProfile.ToString("0.0000"));
            sb.Append(delim);
            sb.Append(ChromCorrelationMedian.ToString("0.000"));
            sb.Append(delim);
            sb.Append(this.IScore.ToString("0.0000"));
            sb.Append(delim);
            sb.Append(this.Intensity);
            sb.Append(delim);
            sb.Append(this.IntensityI0);
            sb.Append(delim);
            sb.Append(PercentCarbonsLabelled);
            sb.Append(delim);
            sb.Append(PercentPeptideLabelled);
            sb.Append(delim);
            sb.Append(ContiguousnessScore);

            return(sb.ToString());
        }
        public override string ToString()
        {
            var sb = new StringBuilder();

            var delim = "; ";

            sb.Append(this.Target.ID);
            sb.Append(delim);
            sb.Append(((LcmsFeatureTarget)Target).FeatureToMassTagID);
            sb.Append(delim);
            sb.Append(ScanSet == null ? "null" : ScanSet.PrimaryScanNumber.ToString("0"));
            sb.Append(delim);
            sb.Append(IsotopicProfile == null ? "null" : IsotopicProfile.MonoIsotopicMass.ToString("0.000"));
            sb.Append(delim);
            sb.Append(IsotopicProfile == null ? "null" : IsotopicProfile.MonoPeakMZ.ToString("0.000"));
            sb.Append(delim);
            sb.Append(IsotopicProfile == null ? "null" : Score.ToString("0.000"));
            sb.Append(delim);
            sb.Append(IsotopicProfile == null ? "null" : FitScoreLabeledProfile.ToString("0.000"));
            sb.Append(delim);
            sb.Append(IsotopicProfile == null ? "null" : NumHighQualityProfilePeaks.ToString("0"));
            sb.Append(delim);
            sb.Append(IsotopicProfile == null ? "null" : AreaUnderDifferenceCurve.ToString("0.000"));
            sb.Append(delim);
            sb.Append(IsotopicProfile == null ? "null" : AreaUnderRatioCurveRevised.ToString("0.000"));
            sb.Append(delim);
            sb.Append(IsotopicProfile == null ? "null" : ChromCorrelationMedian.ToString("0.000"));
            sb.Append(delim);
            sb.Append(IsotopicProfile == null ? "null" : NumCarbonsLabelled.ToString("0.000"));
            sb.Append(delim);
            sb.Append(IsotopicProfile == null ? "null" : PercentPeptideLabelled.ToString("0.000"));
            sb.Append(delim);
            sb.Append(IsotopicProfile == null ? "null" : PercentCarbonsLabelled.ToString("0.000"));
            sb.Append(delim);


            sb.Append(IsotopicProfile == null ? ErrorDescription : "");

            return(sb.ToString());
        }
Пример #3
0
        public override string ToString()
        {
            var target = Target as LcmsFeatureTarget;

            var data = new List <string>
            {
                Target.ID.ToString(),
                target?.FeatureToMassTagID.ToString() ?? "null",
                ScanSet?.PrimaryScanNumber.ToString("0") ?? "null"
            };

            if (IsotopicProfile == null)
            {
                for (var i = 0; i < 11; i++)
                {
                    data.Add("null");
                }
                data.Add(ErrorDescription);
            }
            else
            {
                data.Add(IsotopicProfile.MonoIsotopicMass.ToString("0.000"));
                data.Add(IsotopicProfile.MonoPeakMZ.ToString("0.000"));
                data.Add(Score.ToString("0.000"));
                data.Add(FitScoreLabeledProfile.ToString("0.000"));
                data.Add(NumHighQualityProfilePeaks.ToString("0"));
                data.Add(AreaUnderDifferenceCurve.ToString("0.000"));
                data.Add(AreaUnderRatioCurveRevised.ToString("0.000"));
                data.Add(ChromCorrelationMedian.ToString("0.000"));
                data.Add(NumCarbonsLabeled.ToString("0.000"));
                data.Add(PercentPeptideLabeled.ToString("0.000"));
                data.Add(PercentCarbonsLabeled.ToString("0.000"));
                data.Add("");   // ErrorDescription
            }

            return(string.Join("; ", data));
        }