Skip to content

Issues with non-continuous scan indices #38

Description

@rickhelmus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions