Skip to content

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

Merged
lhqing merged 4 commits intolhqing:masterfrom
adamklie:master
Feb 21, 2025
Merged

BUGFIX: TabixIterator does not have attribute .next(), added note in …#59
lhqing merged 4 commits intolhqing:masterfrom
adamklie:master

Conversation

@adamklie
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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