Closed ewmorr closed 4 months ago
Thanks for any pointers!
Can you try to downgrade biopython and see if error is the same?
mamba install -n funannotate "biopython==1.79"
I'll give that a try and report back.
That solved it. Thanks for the quick response!
@peterjc What has changed in biopython > 1.80(?) that nofuzzy_start
and nofuzzy_end
is not longer supported. I suppose I can check for the attribute exists and if not then just use f.location.start
and f.location.end
. Maybe I'll just pin the recipe to biopython <1.80 to avoid this and other changes....
def gb_feature_add2dict(f, record, genes):
# abbreviated function here
if f.type and f.type in [
"gene",
"mRNA",
"CDS",
"tRNA",
"rRNA",
"ncRNA",
"exon",
"misc_RNA",
]:
# standard information from every feature
strand = f.location.strand
if strand == 1:
strand = "+"
elif strand == -1:
strand = "-"
start = f.location.nofuzzy_start + 1
end = f.location.nofuzzy_end
chr = record.id
num_parts = len(f.location.parts)
Quoting https://github.com/biopython/biopython/blob/master/DEPRECATED.rst
There were multiple deprecations in Release 1.80, listed below. The deprecated code was removed in Release 1.82. ...
- Location attributes
location.nofuzzy_start
andlocation.nofuzzy_end
- use the location directly or if requiredint(location.start)
andint(location.end)
. This will fail for theUnknownPosition
where the nofuzzy aliases returnedNone
.
Are you using the latest release? funannotate v1.8.15 installed via
mamba create --name funannotate funannotate
Describe the bug
funannotate test -t annotate
fails with: AttributeError: 'SimpleLocation' object has no attribute 'nofuzzy_start'What command did you issue?
funannotate test -t annotate --debug
Logfiles STDOUT/STDERR
contents of test-annotate/funannotate-annotate.x.log
OS/Install Information