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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

adamklie
Copy link

@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
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 '['.

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.

1 participant