Hello, I am running q2cli version 2021.2.0
, installed using conda, on MacOS Mojave 10.14.6.
I am having issues with mafft
but it doesn’t seem to be related to the memory/large file issues covered in posts like this one. The command I was running when I discovered the issue was:
qiime phylogeny align-to-tree-mafft-fasttree \
--i-sequences rep-seqs.qza \
--o-alignment aligned-seqs.qza \
--o-masked-alignment masked-aligned-rep-seqs.qza \
--o-tree unrooted-tree.qza \
--o-rooted-tree rooted-tree.qza
However, before I go into the specifics of this error, simply running mafft
within my conda Qiime2 environment does not invoke the same behavior as running it outside of this environment:
(qiime2-2021.2) ~ $ mafft
v0.000 != v7.055b (2013/07/25)
There is a problem in the configuration of your shell.
Check the MAFFT_BINARIES environmental variable by
$ echo $MAFFT_BINARIES
This variable must be *unset*, unless you have installed MAFFT
with a special configuration. To unset this variable, type
$ unset MAFFT_BINARIES
or
% unsetenv MAFFT_BINARIES
Then retry
$ mafft input > output
To keep this change permanently, edit setting files
(.bash_profile, .profile, .cshrc, etc) in your home directory
to delete the MAFFT_BINARIES line.
On MacOSX, also edit or remove the .MacOSX/environment.plist file
and then re-login (MacOSX 10.6) or reboot (MacOSX 10.7).
Please send a problem report to kazutaka.katoh@aist.go.jp,
if this problem remains.
So I checked where it was accessing mafft:
(qiime2-2021.2) ~ $ which mafft
/opt/local/bin/mafft
And then deactivated the environment and checked again:
(qiime2-2021.2) ~ $ conda deactivate
(base) ~ $ which mafft
/opt/local/bin/mafft
It’s the same, but in the base environment mafft
results in different behaviour:
(base) ~ $ mafft
---------------------------------------------------------------------
MAFFT v7.055b (2013/07/25)
Copyright (c) 2013 Kazutaka Katoh
MBE 30:772-780 (2013), NAR 30:3059-3066 (2002)
http://mafft.cbrc.jp/alignment/software/
---------------------------------------------------------------------
Input file? (fasta format)
@
I have tried:
- to unset the binaries both inside and outside of the conda environment with
unset MAFFT_BINARIES
as indicated in the error message, but this does not seem to change anything - adding mafft to
~/.bash_profile
, although this seems unnecessary aswhich mafft
already points to the correct location. - searching for generic solutions when unable to unset an environment variable, but I have been unable to find a solution. I am certain it is something simple, but unfortunately this is not my forte. I appreciate that this may not be, technically speaking, a Qiime2 issue, but I am hoping that it is a behavior that you will understand in the context of Qiime2 and thus be able to advise.