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

pysam.Tabixfile.fetch() iterator does not function independently #19

Closed
bryancquach opened this issue May 31, 2014 · 1 comment
Closed

Comments

@bryancquach
Copy link

Assume we have a pysam Tabixfile object and two iterators initialized as follows:

file = pysam.Tabixfile("file.bed")
iterator1 = file.fetch(parser=pysam.asTuple())
iterator2 = file.fetch(parser=pysam.asTuple())

If iterator1.next() is called then the iterator for iterator2 will also move to the next element and vice versa.

@AndreasHeger
Copy link
Contributor

Dear @bryancquach, thanks, I have now implemented re-opening in same way as for sam files. You can now use the paramater "multiple_iterators" for fetch().

Best wishes,
Andreas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants