I am trying to run Prokka and Snippy and I get this error.
------------- EXCEPTION: Bio::Root::Exception -------------
MSG: Can’t build a GFF object with the unknown version 3
STACK: Bio::Root::Root::throw /home/ubuntu/cgview_comparison_tool/lib/bioperl-1.2.3/Bio/Root/Root.pm:342
STACK: Bio::GFF::new /home/ubuntu/cgview_comparison_tool/lib/bioperl-1.2.3/Bio/Tools/GFF.pm:115
A few days back, I installed cgview comparison tool but I am not sure how it can affect these programs.
Any help is welcome!
The problem is likely cause by this part of the cgview installation:
Which installs an ancient release of bioperl (pre-GFF3!), then gives it precedence on your PERL5LIB, resulting in anything that uses a modern release of bioperl failing with the above message.
My suggested fix is to remove the above lines from your
bashrc and add them to a new file called something like
~/cgview.env, then logout and log back in again.
Then, whenever you want to use
cgview, all you need to do is
which will setup the ancient perl modules for you, remembering that if you want to use anything depending on modern bioperl, you’ll need to log out and back in again to clear your environment.
Thanks a lot Matt. It seems to be working now!..