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

Fix error with biopython 1.81 #137

Merged
merged 1 commit into from
Mar 13, 2023
Merged

Conversation

abretaud
Copy link
Contributor

A possible solution for #136, tested on a minimal sample with python 3.9. Any review/test is welcome to make sure it works in all situations.

With this patch, bcbio-gff should work equally with biopython <=1.80 and biopython 1.81

I know bcbio-gff is not actively maintained anymore, but there's still a ton of code using it, so having a new release with this fix would make life easier

@@ -69,7 +77,7 @@ def _split_keyvals(keyval_str):

GFF3 has key value pairs like:
count=9;gene=amx-2;sequence=SAGE:aacggagccg
GFF2 and GTF have:
Copy link

@corneliusroemer corneliusroemer Feb 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you don't use auto-formatting your PR would be easier to review! Thanks for giving this a stab!

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(s/remove/review/ presumably)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, sorry, I figured auto-formatting is enabled everywhere by default now anyway, and the diff is not so huge

@abretaud
Copy link
Contributor Author

ping @chapmanb in case you were not notified :)

MatBarba added a commit to Ensembl/ensembl-genomio that referenced this pull request Mar 9, 2023
MatBarba added a commit to Ensembl/ensembl-genomio that referenced this pull request Mar 9, 2023
@chapmanb chapmanb merged commit 81442c0 into chapmanb:master Mar 13, 2023
@chapmanb
Copy link
Owner

Thanks so much for the fix and apologies for being slow in getting it merged. I'll roll a new release right now as well. Really appreciate you being on top of this.

@abretaud
Copy link
Contributor Author

Wonderful thanks a lot for the merge and release @chapmanb! 👍

corneliusroemer added a commit to nextstrain/augur that referenced this pull request Mar 13, 2023
Biopython was fixed to <=1.80 in #1152
because bcbio-gff <=0.6.9 requires deprecated Biopython functionality that was removed in 1.81

A fix to bcbio-gff was released as 0.7.0, see chapmanb/bcbb#137 chapmanb/bcbb#136
So now we can pin bcbio-gff to >=0.7.0 and remove the pin
of Biopython

Note added in #1170 can hence be removed
corneliusroemer added a commit to nextstrain/augur that referenced this pull request Mar 14, 2023
Biopython was fixed to <=1.80 in #1152
because bcbio-gff <=0.6.9 requires deprecated Biopython functionality that was removed in 1.81

A fix to bcbio-gff was released as 0.7.0, see chapmanb/bcbb#137 chapmanb/bcbb#136
So now we can pin bcbio-gff to >=0.7.0 and remove the pin
of Biopython

Note added in #1170 can hence be removed
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.

4 participants