/// <summary> /// Initializes a new instance of the <see cref="LcmsRunDeconvoluter" /> class. /// This constructor creates an instance with a single MSLevel /// </summary> /// <param name="dataReader">MassSpec data reader to read raw spectra from.</param> /// <param name="deconvoluter">Spectrum deconvoluter.</param> /// <param name="msLevel">The MS level (ex MS1, MS2, etc) to extract spectra for.</param> /// <param name="maxDegreeOfParallelism">The maximum number of threads the deconvoluter can use.</param> public LcmsRunDeconvoluter( IMassSpecDataReader dataReader, Deconvoluter deconvoluter, int msLevel, int maxDegreeOfParallelism = 1) : this(dataReader, deconvoluter, new HashSet <int> { msLevel }, maxDegreeOfParallelism) { }
/// <summary> /// Initializes a new instance of the <see cref="LcmsRunDeconvoluter" /> class. /// This constructor creates an instance with multiple MSLevels for default (MS1 and MS2). /// </summary> /// <param name="dataReader">MassSpec data reader to read raw spectra from.</param> /// <param name="deconvoluter">Spectrum deconvoluter.</param> /// <param name="msLevels">The MS levels (ex MS1, MS2, etc) to extract spectra for.</param> /// <param name="maxDegreeOfParallelism">The maximum number of threads the deconvoluter can use.</param> public LcmsRunDeconvoluter( IMassSpecDataReader dataReader, Deconvoluter deconvoluter, IEnumerable <int> msLevels = null, int maxDegreeOfParallelism = 1) { this.deconvoluter = deconvoluter; this.dataReader = dataReader; this.maxDegreeOfParallelism = maxDegreeOfParallelism; this.msLevelSet = msLevels == null ? new HashSet <int> { 1, 2 } : new HashSet <int>(msLevels); }