public PeptideQuantifier(PeptideGroupDocNode peptideGroup, PeptideDocNode peptideDocNode,
     QuantificationSettings quantificationSettings)
 {
     PeptideGroupDocNode = peptideGroup;
     PeptideDocNode = peptideDocNode;
     QuantificationSettings = quantificationSettings;
 }
 protected bool Equals(QuantificationSettings other)
 {
     return(Equals(RegressionWeighting, other.RegressionWeighting) &&
            Equals(RegressionFit, other.RegressionFit) &&
            Equals(NormalizationMethod, other.NormalizationMethod) &&
            Equals(MsLevel, other.MsLevel) &&
            Equals(Units, other.Units));
 }
Beispiel #3
0
 protected bool Equals(QuantificationSettings other)
 {
     return(Equals(RegressionWeighting, other.RegressionWeighting) &&
            Equals(RegressionFit, other.RegressionFit) &&
            Equals(NormalizationMethod, other.NormalizationMethod) &&
            Equals(MsLevel, other.MsLevel) &&
            Equals(Units, other.Units) &&
            Equals(LodCalculation, other.LodCalculation) &&
            Equals(MaxLoqBias, other.MaxLoqBias) &&
            Equals(MaxLoqCv, other.MaxLoqCv));
 }
 private SrmDocument ChangeQuantificationSettings(SrmDocument srmDocument, QuantificationSettings quantificationSettings)
 {
     return srmDocument.ChangeSettings(
         srmDocument.Settings.ChangePeptideSettings(
             srmDocument.Settings.PeptideSettings.ChangeAbsoluteQuantification(
                 quantificationSettings)));
 }
 protected bool Equals(QuantificationSettings other)
 {
     return Equals(RegressionWeighting, other.RegressionWeighting) &&
            Equals(RegressionFit, other.RegressionFit) &&
            Equals(NormalizationMethod, other.NormalizationMethod) &&
            Equals(MsLevel, other.MsLevel) &&
            Equals(Units, other.Units);
 }
Beispiel #6
0
        public void ReadXml(XmlReader reader)
        {
            // Consume tag
            if (reader.IsEmptyElement)
                reader.Read();
            else
            {
                reader.ReadStartElement();

                // Read child elements.
                Enzyme = reader.DeserializeElement<Enzyme>();
                DigestSettings = reader.DeserializeElement<DigestSettings>();
                BackgroundProteome = reader.DeserializeElement<BackgroundProteome>();
                Prediction = reader.DeserializeElement<PeptidePrediction>();
                Filter = reader.DeserializeElement<PeptideFilter>();
                Libraries = reader.DeserializeElement<PeptideLibraries>();
                Modifications = reader.DeserializeElement<PeptideModifications>();
                Integration = reader.DeserializeElement<PeptideIntegration>();
                Quantification = reader.DeserializeElement<QuantificationSettings>();
                reader.ReadEndElement();
            }

            Quantification = Quantification ?? QuantificationSettings.DEFAULT;
            // Defer validation to the SrmSettings object
        }
Beispiel #7
0
 public PeptideSettings ChangeAbsoluteQuantification(QuantificationSettings prop)
 {
     prop = prop ?? QuantificationSettings.DEFAULT;
     if (Equals(prop, Quantification))
     {
         return this;
     }
     return ChangeProp(ImClone(this), im => im.Quantification = prop);
 }