Hello,
I am facing some issues reading Agilent Q-TOF data that apparently has scan numbers that are not continuous (but sorted).
When readMZPFile() is called with scNum==0 then things are fine, mostly owing to the following line:
|
if (pScanIndex[rampIndex]<0) continue; |
However, in my case I want to iterate over the file in chunks over several parallel workers and therefore need to set scNum at least once per chunk. However, there doesn't seem to be a way to actually find which scan numbers between 1 and getLastScan() are valid. I guess a way could be to export pScanIndex so the validity could be checked before attempting a read. But perhaps there are better ways to take of this, so I wanted to open this issue first before making any PR.
Thanks,
Rick
Hello,
I am facing some issues reading Agilent Q-TOF data that apparently has scan numbers that are not continuous (but sorted).
When
readMZPFile()is called withscNum==0then things are fine, mostly owing to the following line:mstoolkit/src/MSToolkit/MSReader.cpp
Line 1380 in d652109
However, in my case I want to iterate over the file in chunks over several parallel workers and therefore need to set
scNumat least once per chunk. However, there doesn't seem to be a way to actually find which scan numbers between1andgetLastScan()are valid. I guess a way could be to exportpScanIndexso the validity could be checked before attempting a read. But perhaps there are better ways to take of this, so I wanted to open this issue first before making any PR.Thanks,
Rick