protected override IFileProcessor GetFileProcessor()
        {
            var reader = readers.SelectedItem;

            reader.PlexType = plexTypes.SelectedItem;

            var mPeakCount = Math.Max(1, minPeakCount.Value);

            var options = new IsobaricResultMultipleFileDistillerOptions()
            {
                Reader                  = reader,
                Individual              = cbIndividual.EnabledAndChecked,
                PerformMassCalibration  = cbPerformMassCalibration.EnabledAndChecked,
                PerformPurityCorrection = cbPerformPurityCorrection.EnabledAndChecked,
                MinPeakCount            = mPeakCount,
                RawFiles                = rawFiles.FileNames,
                PrecursorPPMTolerance   = precursorPPMTolerance.Value,
                ProductPPMTolerance     = productPPMTolerance.Value,
                RequiredChannels        = channelRequired.GetFuncs(),
                UsedChannels            = channelUsed.GetFuncs()
            };

            //if (reader.PlexType == IsobaricType.PLEX8)
            //{
            //  //对于8标Isobaric,121往往会受120影响,在某些非肽段的scan中,会出现121有非常低的丰度,而其他channel没有丰度,导致做normalization的时候出错(特别是中值法)。
            //  mPeakCount = Math.Max(2, mPeakCount);
            //}

            return(new IsobaricResultMultipleFileDistiller(options));
        }
 public IsobaricResultMultipleFileDistiller(IsobaricResultMultipleFileDistillerOptions options)
 {
     this.options = options;
 }