Ejemplo n.º 1
0
        public static void WriteIsobaricItem(XmlTextWriter w, IsobaricItem item)
        {
            w.WriteStartElement("ITraqScan");

            w.WriteElement("PlexType", item.PlexType.ToString());
            w.WriteElement("Experimental", item.Experimental);
            w.WriteElement("ScanMode", item.ScanMode);
            w.WriteElement("Scan", item.Scan.Scan);
            w.WriteElementFormat("RetentionTime", "{0:0.0}", item.Scan.RetentionTime);
            w.WriteElementFormat("IonInjectionTime", "{0:0.000}", item.Scan.IonInjectionTime);
            w.WriteElementFormat("PrecursorPercentage", "{0:0.000}", item.PrecursorPercentage);

            WriteChannels(w, item);

            WriteElementPeakList(w, item.RawPeaks, "RawPeaks", false);

            WriteElementPeakList(w, item.PeakInIsolationWindow, "PeakInIsolationWindow", true);

            w.WriteEndElement();

            w.Flush();
        }
        public void WriteIsobaricItem(XmlTextWriter w, IsobaricResult ir, IsobaricScan item)
        {
            w.WriteStartElement("IsobaricScan");

            w.WriteElement("Experimental", item.Experimental);
            w.WriteElement("ScanMode", item.ScanMode);
            w.WriteElement("Scan", item.Scan.Scan);
            w.WriteElementFormat("RetentionTime", "{0:0.0}", item.Scan.RetentionTime);
            w.WriteElementFormat("IonInjectionTime", "{0:0.000}", item.Scan.IonInjectionTime);
            w.WriteElementFormat("PrecursorPercentage", "{0:0.000}", item.PrecursorPercentage);

            if (HasReporters)
            {
                WriteChannels(w, ir.UsedChannels, item);
            }

            WriteElementPeakList(w, item.RawPeaks, "RawPeaks", false);

            WriteElementPeakList(w, item.PeakInIsolationWindow, "PeakInIsolationWindow", true);

            w.WriteEndElement();

            w.Flush();
        }