Esempio n. 1
0
        public void Load(XElement parentNode)
        {
            XElement xml = parentNode.Element("PeptideFilter");

            OptionUtils.XmlToFilter(xml, "MinSequenceLength", out _filterBySequenceLength, out _minSequenceLength);
            if (xml.Element("MaxMissCleavage") != null)
            {
                OptionUtils.XmlToFilter(xml, "MaxMissCleavage", out _filterByMaxMissCleavage, out _maxMissCleavage);
            }
            else
            {
                _filterByMaxMissCleavage = true;
                _maxMissCleavage         = DEFAULT_MaxMissCleavage;
            }
        }
Esempio n. 2
0
 public void Save(XElement parentNode)
 {
     parentNode.Add(new XElement("PeptideFilter",
                                 OptionUtils.FilterToXml("MinSequenceLength", FilterBySequenceLength, MinSequenceLength),
                                 OptionUtils.FilterToXml("MaxMissCleavage", FilterByMaxMissCleavage, MaxMissCleavage)));
 }