Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing of scan number #11

Open
michabirklbauer opened this issue Jun 16, 2024 · 0 comments
Open

Parsing of scan number #11

michabirklbauer opened this issue Jun 16, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@michabirklbauer
Copy link
Member

This really should use a proper function to parse scan numbers, as this might not always work:

scan_nr = int(spectrum["params"]["title"].split("scan=")[1].strip("\""))

For the moment, make sure that the title contains scan= with the scan number, otherwise script won't work.

For future, use something like here: https://github.com/hgb-bin-proteomics/Proteome_Discoverer_MGF_Scan_Number_Repair_Tool/blob/f59c4a667641e75c3ae42fa53496aae7938ba0a3/scan_nr_repair_tool.py#L75

@michabirklbauer michabirklbauer added the documentation Improvements or additions to documentation label Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant