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

BUGFIX: TabixIterator does not have attribute .next(), added note in … #59

Merged
merged 4 commits into from
Feb 21, 2025

Conversation

adamklie
Copy link
Contributor

@adamklie adamklie commented Dec 4, 2024

In latest version of pysam (v0.22.1), TabixIterator.next() does not exist and so self.f_region.next() throws an error. Replaced with self.f_region.__next__() and this seems to work. I also added a small note about the --output_path param in the merge-allc command. When I did not use the tsv.gz extension, tabix was unable to recognize the file. I'm not sure what the full spectrum of allowable extensions is, but it would be good to have this documented.

@adamklie
Copy link
Contributor Author

I also found a small bug in merge-allc in which this line

region_bed_df[name] = (f"{name}_{i}" for i in range(region_bed_df.shape[0]))

was causing an error. Seems like a simple fix to replace '(' with '['.

@lhqing
Copy link
Owner

lhqing commented Feb 21, 2025

Thank you for the bug fix! I fixed a conflicts and merge this PR.

@lhqing lhqing merged commit 88df105 into lhqing:master Feb 21, 2025
1 check failed
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

Successfully merging this pull request may close these issues.

2 participants