Skip to content

Not index found and raise Exception( Exception: Spectrum ID should be between 1 and 1) #357

Open
@mremachine1

Description

@mremachine1

Describe the bug
The mzML file has spectrums and looks like it is properly formatted, but when I try to open it with pymzml.reader it saids the index isnt found. Ive tried build index from scratch = True, but that did not rectify the problem. Both the reader object and the file itself indicate that the file does in fact have scan ids, but when trying to access the scan data via scan ID, i get the following exception thrown: "Spectrum ID should be between 1 and 1".

To Reproduce
Steps to reproduce the behavior:

import pymzml
new_path = "X:\JS\Adductomics\BariatricStudy\DIAumpire\"
new_fh = new_path + "JS-CS_LI_221120_GroopmanJ_JS_PAA_3_P3_C_correct_Q2.mzML"
test_mzml = pymzml.run.Reader(new_fh)
[Warning] Not index found and build_index_from_scratch is False
test_mzml = pymzml.run.Reader(new_fh, build_index_from_scratch=True)
data = test_mzml[1944]

Expected behavior
with other files from the same study we are able to access the corresponding scan via reader_object[Spectrum ID]

Desktop (please complete the following information):
windows 11 pro

Additional context
i would like to upload the problematic mzml file but it wont let me upload it due to size limits.
error_pymzml.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions