예제 #1
0
        public void MyTestInitialize()
        {
            dataFile = new MSDataFile(Properties.Settings.Default.mzXMLTestFile1);
            spectrumCache = new SpectrumCache();
            ticGenerator = new TicGenerator(dataFile.run, spectrumCache);

            timer = new Stopwatch();
        }
        public void Open(string fileName, int sampleIndex)
        {
            if (_currentSampleIndex != sampleIndex || _currentFileName != fileName)
            {
                MSDataList msdList = new MSDataList();
                ReaderList.FullReaderList.read(fileName, msdList);
                _dataFile = msdList[0];
                _run = _dataFile.run;

                _currentFileName = fileName;
                _currentSampleIndex = sampleIndex;

                spectrumCache = new SpectrumCache();
                ticGenerator = new TicGenerator(_run, spectrumCache);
                xicGenerator = new XicGenerator(_run, spectrumCache);
                spectrumExtractor = new SpectrumExtractor(_run, spectrumCache);
                averagedSpectrumExtractor = new AveragedSpectrumExtractor(_run, spectrumCache);
            }
        }
예제 #3
0
 public RtToTimePointConverter(Run run, SpectrumCache spectrumCache)
 {
     this.run = run;
     ticGenerator = new TicGenerator(run, spectrumCache);
 }