funannotate: KeyError: u'locus_tag' on funannotate compare
Are you using the latest release? Using version 1.7.2
Describe the bug
[02:14 PM]: Found 7 clusters, 14 biosynthetic enyzmes, and 19 smCOGs
predicted by antiSMASH
[02:14 PM]: Found 0 duplicated annotations, adding 31,745 valid annotations
[02:14 PM]: Converting to final Genbank format, good luck!
[02:17 PM]: Creating AGP file and corresponding contigs file
[02:17 PM]: Cross referencing SM cluster hits with MIBiG database version 1.4
[02:17 PM]: Creating tab-delimited SM cluster output
[02:17 PM]: Writing genome annotation table.
Traceback (most recent call last):
File "/usr/local/bin/funannotate", line 4, in <module>
__import__('pkg_resources').run_script('funannotate==1.7.2', 'funannotate')
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py",
line 658, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py",
line 1438, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/funannotate-1.7.2-py2.7.egg/EGG-INFO/scripts/funannotate",
line 657, in <module>
main()
File "/usr/local/lib/python2.7/dist-packages/funannotate-1.7.2-py2.7.egg/EGG-INFO/scripts/funannotate",
line 647, in main
mod.main(arguments)
File "/usr/local/lib/python2.7/dist-packages/funannotate-1.7.2-py2.7.egg/funannotate/annotate.py",
line 1385, in main
lib.annotationtable(final_gbk, FUNDB, final_annotation)
File "/usr/local/lib/python2.7/dist-packages/funannotate-1.7.2-py2.7.egg/funannotate/library.py",
line 6367, in annotationtable
ID = f.qualifiers['locus_tag'][0]
KeyError: u'locus_tag'
What command did you issue? /usr/local/bin/funannotate annotate --input /mnt/sdb/Globisporangium_ultimum/Globisporangium_ultimum/DAOM_BR144/fun_out --out /mnt/sdb/Globisporangium_ultimum/Globisporangium_ultimum/DAOM_BR144/annotation_out --species Globisporangium_ultimum --strain DAOM_BR144 --force --antismash /mnt/sdb/Globisporangium_ultimum/Globisporangium_ultimum/DAOM_BR144/antismash_OUT/Globisporangium_ultimum_DAOM_BR144.gbk --iprscan /mnt/sdb/Globisporangium_ultimum/Globisporangium_ultimum/DAOM_BR144/fun_out/annotate_misc/iprscan.xml --cpus 15 Runned after funannotate update [funannotate-annotate.32309.log]
Logfiles (https://github.com/nextgenusfs/funannotate/files/4022165/funannotate-annotate.32309.log) augustus-parallel.log augustus_training.log funannotate-annotate.log funannotate-EVM.log funannotate-p2g.log funannotate-predict.log funannotate-train.log funannotate-trinity.log funannotate-update.log phobius.log
OS/Install Information
Checking dependencies for 1.7.2
You are running Python v 2.7.17. Now checking python packages… biopython: 1.73 goatools: 0.9.5 matplotlib: 2.2.4 natsort: 6.0.0 numpy: 1.13.3 pandas: 0.24.2 psutil: 5.6.2 requests: 2.22.0 scikit-learn: 0.20.3 scipy: 1.2.2 seaborn: 0.9.0 All 11 python packages installed
You are running Perl v 5.026001. Now checking perl modules… Bio::Perl: 1.007002 Carp: 1.42 Clone: 0.39 DBD::SQLite: 1.62 DBD::mysql: 4.046 DBI: 1.64 DB_File: 1.852 Data::Dumper: 2.167 File::Basename: 2.85 File::Which: 1.23 Getopt::Long: 2.49 Hash::Merge: 0.300 JSON: 4.02 LWP::UserAgent: 6.31 Logger::Simple: 2.0 POSIX: 1.76 Parallel::ForkManager: 2.02 Pod::Usage: 1.69 Scalar::Util::Numeric: 0.40 Storable: 2.62 Text::Soundex: 3.05 Thread::Queue: 3.12 Tie::File: 1.02 URI::Escape: 3.31 YAML: 1.28 threads: 2.15 threads::shared: 1.56 All 27 Perl modules installed
Checking Environmental Variables… $FUNANNOTATE_DB=/mnt/sdb/funannotate/DB_funannotate $PASAHOME=/mnt/sdb/funannotate/PASApipeline $TRINITYHOME=/mnt/sdb/funannotate/trinityrnaseq-v2.9.0 $EVM_HOME=/mnt/sdb/funannotate/EVidenceModeler-1.1.1 $AUGUSTUS_CONFIG_PATH=/mnt/sdb/funannotate/Augustus/config $GENEMARK_PATH=/mnt/sdb/funannotate/gm_et_linux_64/gmes_petap All 6 environmental variables are set
Checking external dependencies… PASA: 2.3.3 CodingQuarry: 2.0 Trinity: 2.9.0 augustus: 3.3.2 bamtools: bamtools 2.5.1 bedtools: bedtools v2.26.0 blat: BLAT v36x2 diamond: 0.9.24 emapper.py: 2.0.1 ete3: 3.1.1 exonerate: exonerate 2.4.0 fasta: no way to determine glimmerhmm: 3.0.4 gmap: 2017-11-15 gmes_petap.pl: 4.38 hisat2: 2.1.0 hmmscan: HMMER 3.2.1 (June 2018) hmmsearch: HMMER 3.2.1 (June 2018) java: 11.0.5 kallisto: 0.46.0 mafft: v7.310 (2017/Mar/17) makeblastdb: makeblastdb 2.9.0+ minimap2: 2.17-r943-dirty proteinortho: 6.0.10 pslCDnaFilter: no way to determine salmon: salmon 0.14.0 samtools: samtools 1.9-66-gc15e884 signalp: 4.1 snap: 2006-07-28 stringtie: 1.3.6 tRNAscan-SE: 1.3.1 (January 2012) tantan: tantan 13 tbl2asn: no way to determine, likely 25.X tblastn: tblastn 2.9.0+ trimal: trimAl v1.4.rev22 build[2015-05-21] trimmomatic: 0.39 All 36 external dependencies are installed
to keep working i edited library.py in line 6366 where is: if f.type == ‘CDS’: and added: if f.type == ‘CDS’ and ‘locus_tag’ in f.qualifiers:
That solve the issue, but not it cause, so I share this here, to improve the software. Thanks.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 44 (21 by maintainers)
okay, i’ll have to look at it when I get home from work.