Beispiel #1
0
        public void LoadFromOldDeconToolsParameterFile(string xmlFilename)
        {
            var xDocument            = XDocument.Load(xmlFilename);
            var parameterBaseElement = xDocument.Element("parameters");

            if (parameterBaseElement == null)
            {
                throw new IOException("Problem reading xml file " + xmlFilename + "; Expected element 'parameters' but it was not found");
            }

            ParameterFilename = xmlFilename;

            var peakDetectionElement = parameterBaseElement.Element("PeakParameters");

            PeakDetectorParameters.LoadParametersV2(peakDetectionElement);

            var thrashElement = parameterBaseElement.Element("HornTransformParameters");

            ThrashParameters.LoadParametersV2(thrashElement);

            var miscElement = parameterBaseElement.Element("Miscellaneous");

            MiscMSProcessingParameters.LoadParametersV2(miscElement);

            var elements = parameterBaseElement.Elements();

            //MSGenerator parameters are found in the old DeconTools parameter file under the 'HornTransformParameters' and the 'Miscellaneous' parameters
            MSGeneratorParameters.LoadParametersV2(thrashElement);
            MSGeneratorParameters.LoadParametersV2(miscElement);

            //ScanBasedWorkflowParameters parameters are found in the old DeconTools parameter file under the 'HornTransformParameters' and the 'Miscellaneous' parameters
            ScanBasedWorkflowParameters.LoadParametersV2(thrashElement);
            ScanBasedWorkflowParameters.LoadParametersV2(miscElement);
            ScanBasedWorkflowParameters.LoadParametersV2(peakDetectionElement);
        }
Beispiel #2
0
 public DeconToolsParameters()
 {
     MSGeneratorParameters       = new MSGeneratorParameters();
     PeakDetectorParameters      = new PeakDetectorParameters();
     ThrashParameters            = new ThrashParameters();
     MiscMSProcessingParameters  = new MiscMSProcessingParameters();
     ScanBasedWorkflowParameters = new ScanBasedWorkflowParameters();
 }