The feature in question was deprecated in Biopython 1.79 and removed in 1.81. While GFFParser has been written to handle the removal, it had silently ignored the deprecation warning until 03e96caa2b91cce22b6d05cf5d5f473cccbb7eb2 was released in bcbio-gff v0.7.1.
This was by a test in one of my repos after the recent release of 0.7.1. Error message snippet:
+ /home/runner/micromamba/envs/augur/lib/python3.8/site-packages/Bio/Seq.py:2220: BiopythonDeprecationWarning: UnknownSeq(length) is deprecated; please use Seq(None, length) instead.
Workarounds
Silence deprecation warnings (similar to reverting 03e96caa2b91cce22b6d05cf5d5f473cccbb7eb2).
Scope
bcbio-gff 0.7.1 and Biopython 1.79 or 1.80.
Description
The feature in question was deprecated in Biopython 1.79 and removed in 1.81. While GFFParser has been written to handle the removal, it had silently ignored the deprecation warning until 03e96caa2b91cce22b6d05cf5d5f473cccbb7eb2 was released in bcbio-gff v0.7.1.
This was by a test in one of my repos after the recent release of 0.7.1. Error message snippet:
Workarounds
biopython>=1.81
which uses a code path that avoidsUnknownSeq
: https://github.com/chapmanb/bcbb/blob/9c6d83ee3f0491f647a9ecd5947b13c99b478f26/gff/BCBio/GFF/GFFParser.py#L33-L40Potential solution
Remove references to
UnknownSeq
and solely use theSeq
approach. It should be available with 1.79, maybe even earlier.