public MSAmandaSpectrumParser(string file, List <int> charges, bool mono)
        {
            consideredCharges  = charges;
            spectrumFileReader = new MsDataFileImpl(file,
                                                    requireVendorCentroidedMS2: MsDataFileImpl.SupportsVendorPeakPicking(file),
                                                    ignoreZeroIntensityPoints: true, trimNativeId: false);
            useMonoIsotopicMass = mono;

            msdataRunPath   = new MSDataRunPath(file);
            SpectTitleMap   = new Dictionary <int, string>();
            CurrentSpectrum = 0;
        }
 public bool Equals(MSDataRunPath other)
 {
     return(string.Equals(Filepath, other.Filepath) && RunIndex == other.RunIndex);
 }