Ejemplo n.º 1
0
 public TicGenerator(Run run, SpectrumCache spectrumCache)
 {
     this.run = run;
     this.spectrumCache = spectrumCache;
     spectrumExtractor = new SpectrumExtractor(run, spectrumCache);
     ticCache = new TicCache();
 }
 public AveragedSpectrumExtractor(Run run, SpectrumCache spectrumCache)
 {
     this.run = run;
     this.spectrumCache = spectrumCache;
     rtToTimePointConverter = new RtToTimePointConverter(run, spectrumCache);
     spectrumExtractor = new SpectrumExtractor(run, spectrumCache);
 }
Ejemplo n.º 3
0
        public void MyTestInitialize()
        {
            dataFile = new MSDataFile(Properties.Settings.Default.mzXMLTestFile1);
            spectrumCache = new SpectrumCache();
            spectrumExtractor = new SpectrumExtractor(dataFile.run, spectrumCache);

            timer = new Stopwatch();
        }
Ejemplo n.º 4
0
        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);
            }
        }