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

feat: add BZIP2 (.bz2) support for reading fasta and fastq #185

Merged
merged 1 commit into from
Dec 15, 2024

Conversation

nickzoic
Copy link
Contributor

@nickzoic nickzoic commented Nov 24, 2024

Adds "BZIP2" compression option for reading .fastq and .fasta files which happen to be compressed with BZIP2.

(Exon already supports this, this just makes that ability available in biobear)

@nickzoic
Copy link
Contributor Author

G'day @tshauck does this PR look okay? Keen to get it merged so I can support reading .bz2 files ...

@tshauck
Copy link
Member

tshauck commented Dec 12, 2024

Hi @nickzoic, thanks for contributing this and apologies for the long delay!

I ran the tests, and it looks like there's an unrelated issue I'll need to fix, before this can merge. I'll try to take care if over the next couple of days and follow up here when I know more.

@nickzoic
Copy link
Contributor Author

Oh good because I have no idea what that error is meant to be about!
I did get it to build the branch locally and confirm that it passes 'pytest' tests though (except the S3 ones)

@tshauck
Copy link
Member

tshauck commented Dec 15, 2024

@nickzoic Thanks again for opening the PR! Would you mind rebasing your branch. I think then the test should be resolved and I can merge it. I could also apply the patch manually, but wouldn't maintain history as well in github.

@nickzoic nickzoic force-pushed the nickzoic/bzip2-attempt-2 branch from 79b3295 to a3410ff Compare December 15, 2024 09:03
@nickzoic nickzoic force-pushed the nickzoic/bzip2-attempt-2 branch from 37fdf7a to b1ec855 Compare December 15, 2024 09:09
@nickzoic
Copy link
Contributor Author

I think I've now successfully wrestled git into doing what I meant :-)

@tshauck tshauck self-requested a review December 15, 2024 16:01
@tshauck
Copy link
Member

tshauck commented Dec 15, 2024

@nickzoic Looks great, thanks! Merging then'll make a new biobear release.

@tshauck tshauck merged commit 95bf089 into wheretrue:main Dec 15, 2024
1 check passed
@tshauck
Copy link
Member

tshauck commented Dec 15, 2024

@nickzoic The new build should now be on pypi (https://pypi.org/project/biobear/0.23.2/) -- would you mind giving it a try whenever you have time. Thanks again for the PR!

@nickzoic
Copy link
Contributor Author

Yep! Upgraded to 0.23.2 via pypi, now it opens .fastq.bz2 and .fa.bz2 files no problem. Thanks!

@tshauck
Copy link
Member

tshauck commented Dec 16, 2024

Awesome, thanks!

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