public Raw2MgfProcessor(MultipleRaw2MgfOptions options) : base(options)
 {
     this.options     = options;
     this.Writer      = options.GetMGFWriter();
     this.swMap       = new Dictionary <string, StreamWriter>();
     this.outputFiles = new List <string>();
 }
Exemple #2
0
        protected override IParallelTaskFileProcessor GetTaskProcessor(string targetDir, string fileName)
        {
            var taskProcessor = options.GetProcessor(fileName, Progress);

            if (options.OutputMzXmlFormat)
            {
                return(new Raw2MzXMLProcessor(options)
                {
                    PeakListProcessor = taskProcessor,
                    DataProcessingSoftware = options.ConverterName,
                    DataProcessingSoftwareVersion = options.ConverterVersion,
                });
            }
            else
            {
                var newWriter = options.GetMGFWriter();

                return(new Raw2MgfProcessor(options)
                {
                    Writer = newWriter,
                    PeakListProcessor = taskProcessor,
                });
            }
        }