Hi everyone,
I was given a genbank file (.GB) as a reference and I will be making a custom reference for cell ranger. However I need convert this genbank file to gtf. I've been looking for and trying different methods for a couple of days with no luck.
I saw this answer: How to get GTF file of virus genome but I can't seem to get Bioperl to work. I have installed it through Anaconda but when I try to load it up I receive the following error:
-bash-4.2$ perl bp_genbank2gff3.pl --dir Viral.GB --GFF_VERSION 2
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "C.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Can't open perl script "bp_genbank2gff3.pl": No such file or directory
I'm running bioperl through linux on an HPC through ssh so I also don't have any administrative permissions.
Thank you in advance.
Apparently I am having the worst luck with all this.
bp_genbank2gff seems to be located in my anaconda bin path. I can see it there with the "which" command.
However, trying
bp_genbank2gff.pl --dir Viral.GB --GFF_Version 2
outputs this error:I even tried following this advice to no avail.
Biopython is also giving me issues even though I installed it, but I may not have installed that correctly since it's showing up through
pkgs
instead of inanaconda3/bin
. When I try and call it I getbio: Command not found
the error messages indicate that your installation is not quite right, make a new environment and try again:
and try to run your command again, in this new, properly set up environment.
now
bio
is a separate package (written in Python) you would need to do ato install it. Try the previous solution first.
So I tried to create the new environment but I got the following:
Trying the init command via
conda init test
gives:clearly there is more going on there, conda itself was not installed properly, hence the chain of errors that followed,
the command explains the problem, please read carefully what the error message states
it does not say you should run
conda init test
it clearly states what the available shells arebash
, etcif you don't know what that means you need a refresher on Unix, without that you won't succeed later on
Thanks Istvan, you're right that running
conda init test
was an incorrect action - I was letting the frustration of the past few days, and that I'm on a deadline, get to me. Of course I'm still continuing to learn Unix and will keep doing so.It's difficult to say if conda was installed incorrectly or not since I have been able to use other programs like bwa and samtools without any errors whatsoever. This is the first time I've encountered any errors like this with anaconda.
make sure to always activate the environment before installing or using tools:
if you forget to do that tools get installed into the so called "base" environment, leading to various cryptic and confusing errors later on.
This is a usability problem with
conda
in my opinion, but it is what we have.When in doubt make a new environment, that is "empty" and "clean" and install your tool into that.