Skip to content

Commit

Permalink
Ensure Biopython deprecation warnings are emitted
Browse files Browse the repository at this point in the history
These are useful but suppressed by BCBio.GFF as of version 0.7.0. See
issue linked in changes.
  • Loading branch information
victorlin committed Dec 26, 2023
1 parent ad4ed1b commit 61fd9f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions augur/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,13 @@ def _read_gff(reference, feature_names):
If a gene is found with the name 'nuc'
"""
from BCBio import GFF

# TODO: Remove warning filter reversal after it's addressed upstream:
# <https://github.com/chapmanb/bcbb/issues/140>
import warnings
from Bio import BiopythonDeprecationWarning
warnings.simplefilter("default", BiopythonDeprecationWarning)

valid_types = ['gene', 'source', 'region']
features = {}

Expand Down

0 comments on commit 61fd9f5

Please sign in to comment.