Open cczhao2018 opened 4 years ago
I cant give an exact reason why prokka works outside the metawrap but not inside, but if you know a little bash you could troubleshoot it by going into the annotate_bins.sh script and looking at the exact prokka command being run. You can modify it or try to run it externally to see whats going on.
I think it's because of this line in prokka's code :
use lib "$FindBin::RealBin/../perl5"; # for bundled Perl modules
With the metaWRAP installation, it looks like it should point to "../lib/perl5" instead. Creating a symlink should resolve the issue.
@cczhao2018 maybe something like this would help :
cd /home/liuhaiyan/cczhao/anaconda3/envs/metawrap-anno/; ln -s lib/perl5
Hi, ursky. At first, I thought it was prokka's Perl module problem, because prokka will give this error when I type "prokka --help", then I use conda to install perl-db-file, prokka problem was solved. But, if I use "metawrap annotate_bins" it will report this error. Then, I reinstalled metawrap(v 1.2.2) in an isolated conda environment by "better installation", and prokka can work alone too, while "metawrap annotate_bins" still give this problem.