Пример #1
0
        public XCaliburReader(string filePath)
        {
            _cachedScanInfo = new ThermoRawFileReaderDLL.clsScanInfo(-1);

            _msfileReader = new ThermoRawFileReaderDLL.FinniganFileIO.XRawFileIO();

            var dataFile = new FileInfo(filePath);
            if (!dataFile.Exists)
                throw new FileNotFoundException("Thermo .raw file not found: " + filePath, dataFile.FullName);

            _msfileReader.OpenRawFile(filePath);

            _minLcScan = 1;
            _numSpectra = ReadNumSpectra();
            _maxLcScan = _numSpectra;

            _msLevel = new Dictionary<int, int>();
        }
Пример #2
0
        public XCaliburReader(string filePath)
        {
            _cachedScanInfo = new ThermoRawFileReaderDLL.clsScanInfo(-1);

            _msfileReader = new ThermoRawFileReaderDLL.FinniganFileIO.XRawFileIO();

            var dataFile = new FileInfo(filePath);

            if (!dataFile.Exists)
            {
                throw new FileNotFoundException("Thermo .raw file not found: " + filePath, dataFile.FullName);
            }

            _msfileReader.OpenRawFile(filePath);

            _minLcScan  = 1;
            _numSpectra = ReadNumSpectra();
            _maxLcScan  = _numSpectra;

            _msLevel = new Dictionary <int, int>();
        }