예제 #1
0
 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));
 }
예제 #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)));
 }
예제 #5
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);
 }
예제 #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
        }
예제 #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);
 }