示例#1
0
        public override void ReadXml(XmlReader reader)
        {
            base.ReadXml(reader);
            ControlAnnotation             = reader.GetAttribute(ATTR.control_annotation);
            ControlValue                  = reader.GetAttribute(ATTR.control_value);
            CaseValue                     = reader.GetAttribute(ATTR.case_value);
            IdentityAnnotation            = reader.GetAttribute(ATTR.identity_annotation);
            AverageTechnicalReplicates    = reader.GetBoolAttribute(ATTR.avg_tech_replicates, true);
            NormalizationMethod           = NormalizationMethod.FromName(reader.GetAttribute(ATTR.normalization_method));
            IncludeInteractionTransitions = reader.GetBoolAttribute(ATTR.include_interaction_transitions, false);
            SummarizationMethod           = SummarizationMethod.FromName(reader.GetAttribute(ATTR.summarization_method));
            ConfidenceLevelTimes100       = reader.GetDoubleAttribute(ATTR.confidence_level, 95);
            PerProtein                    = reader.GetBoolAttribute(ATTR.per_protein, false);
            UseZeroForMissingPeaks        = reader.GetBoolAttribute(ATTR.use_zero_for_missing_peaks, false);
            QValueCutoff                  = reader.GetNullableDoubleAttribute(ATTR.q_value_cutoff);

            var colorRows = new List <MatchRgbHexColor>();

            reader.Read();
            while (reader.IsStartElement(MatchRgbHexColor.XML_ROOT))
            {
                var row = new MatchRgbHexColor();
                row.ReadXml(reader);
                colorRows.Add(row);
            }

            if (colorRows.Any())
            {
                reader.Read();
            }

            ColorRows = ImmutableList <MatchRgbHexColor> .ValueOf(colorRows);
        }
示例#2
0
 public override void ReadXml(XmlReader reader)
 {
     base.ReadXml(reader);
     ControlAnnotation             = reader.GetAttribute(ATTR.control_annotation);
     ControlValue                  = reader.GetAttribute(ATTR.control_value);
     CaseValue                     = reader.GetAttribute(ATTR.case_value);
     IdentityAnnotation            = reader.GetAttribute(ATTR.identity_annotation);
     AverageTechnicalReplicates    = reader.GetBoolAttribute(ATTR.avg_tech_replicates, true);
     SumTransitions                = reader.GetBoolAttribute(ATTR.sum_transitions, true);
     NormalizationMethod           = NormalizationMethod.FromName(reader.GetAttribute(ATTR.normalization_method));
     IncludeInteractionTransitions = reader.GetBoolAttribute(ATTR.include_interaction_transitions, false);
     SummarizationMethod           = SummarizationMethod.FromName(reader.GetAttribute(ATTR.summarization_method));
     ConfidenceLevelTimes100       = reader.GetDoubleAttribute(ATTR.confidence_level, 95);
     PerProtein                    = reader.GetBoolAttribute(ATTR.per_protein, false);
     reader.Read();
 }