I am working through the Moshpit tutorial End-to-end MAG reconstruction MAG binning - MOSHPIT documentation and received this error: Error: QIIME 2 has no plugin/command named 'mag'. Here is the actual code:
mosh mag bin-contigs-metabat \
--i-contigs contigs.qza \
--i-alignment-maps reads-to-contigs-aln.qza \
--p-num-threads 4 \
--p-seed 100 \
--o-mags mags.qza \
--o-contig-map contig-map.qza \
--o-unbinned-contigs unbinned-contigs.qza \
--verbose
I read through some other forum topics with similar errors. Did the mag plug-in get renamed? The rest of the tutorial has been working. Thank you.
Hi @nichole.nusbacher,
Can you provide us with the specific name and version of your conda environment? That is, is it rachis-qiime2-2026.7 or rachis-moshpit-2026.7? Older version?
You should be in the moshpit branch.
There have been some rearrangements between versions. But it'd help to know which version you are running.
-Cheers!
Thank you for asking this question - it prompted the answer. The Moshpit tutorial doesn't include the command to activate the Docker container (adding /bin/bash to the last line in docker run). I found that solution on a different Forum thread. I didn't notice that the version of Moshpit in the Forum thread and the one in the current tutorial were different (2025 vs 2026). When I created the new docker container with the current version, the plug in error was resolved. I got a different fatal error when using MetaBAT 2, but the code worked with SemiBin2. I am only running the tutorial to get an idea how it works so I will troubleshoot the MetaBAT2 error at a later time. Thanks for your help!