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); }
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(); }
public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (ControlAnnotation != null ? ControlAnnotation.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ControlValue != null ? ControlValue.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CaseValue != null ? CaseValue.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (IdentityAnnotation != null ? IdentityAnnotation.GetHashCode() : 0); hashCode = (hashCode * 397) ^ AverageTechnicalReplicates.GetHashCode(); hashCode = (hashCode * 397) ^ SumTransitions.GetHashCode(); hashCode = (hashCode * 397) ^ NormalizationMethod.GetHashCode(); hashCode = (hashCode * 397) ^ IncludeInteractionTransitions.GetHashCode(); hashCode = (hashCode * 397) ^ SummarizationMethod.GetHashCode(); hashCode = (hashCode * 397) ^ ConfidenceLevel.GetHashCode(); hashCode = (hashCode * 397) ^ PerProtein.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (ControlAnnotation != null ? ControlAnnotation.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ControlValue != null ? ControlValue.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CaseValue != null ? CaseValue.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (IdentityAnnotation != null ? IdentityAnnotation.GetHashCode() : 0); hashCode = (hashCode * 397) ^ AverageTechnicalReplicates.GetHashCode(); hashCode = (hashCode * 397) ^ (NormalizationMethod != null ? NormalizationMethod.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IncludeInteractionTransitions.GetHashCode(); hashCode = (hashCode * 397) ^ (SummarizationMethod != null ? SummarizationMethod.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ConfidenceLevelTimes100.GetHashCode(); hashCode = (hashCode * 397) ^ PerProtein.GetHashCode(); hashCode = (hashCode * 397) ^ UseZeroForMissingPeaks.GetHashCode(); hashCode = (hashCode * 397) ^ QValueCutoff.GetHashCode(); hashCode = (hashCode * 397) ^ (ColorRows != null ? ColorRows.GetHashCode() : 0); return(hashCode); } }
public GroupComparisonDef ChangeSummarizationMethod(SummarizationMethod summarizationMethod) { return(ChangeProp(ImClone(this), im => im.SummarizationMethod = summarizationMethod)); }
public GroupComparisonDef ChangeSummarizationMethod(SummarizationMethod summarizationMethod) { return ChangeProp(ImClone(this), im => im.SummarizationMethod = summarizationMethod); }