Skip to content
Discussion options

You must be logged in to vote

Are you instantiating your MzIdentML object with mzid.read? If so, you need to explicitly pass use_index=True. This will perform a fast pre-scan of the XML file, building a byte offset index to speed up future random access reads. This primarily matters for retrieving referenced entities, but should recently have also improved iterfind's speed too. I'm not sure if that iterfind optimization has been released yet though it is already in master.

If you don't want to expand all referenced tags, you can pass retrieve_refs=False to reduce the number of extra queries the reader performs. You're correct, it's impossible to reach "up" the tree when retrieve_refs pulls in a reference to another tag.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by levitsky
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #44 on May 26, 2021 09:12.