# Mafft error with virtual box

**URL:** <https://forum.qiime2.org/t/mafft-error-with-virtual-box/4285>\
**Category:** User Support\
**Tags:** virtualbox, mafft\
**Created:** [May 24, 2018, 3:50pm UTC](https://forum.qiime2.org/t/mafft-error-with-virtual-box/4285 "2018-05-24T15:50:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mshelomi1](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mshelomi1/32/5432_2.png) [@mshelomi1](https://forum.qiime2.org/u/mshelomi1)\
**Post date:** [May 24, 2018, 3:50pm UTC](https://forum.qiime2.org/t/mafft-error-with-virtual-box/4285/1 "2018-05-24T15:50:35Z")

</div>

Hello. I have successfully installed Qiime2-2018.4 on my virtual box running Ubuntu. When attempting to run alignment mafft with the verbose setting, I get the following output.

> qiime alignment mafft --verbose --i-  
> sequences rep-seqs16S.qza --o-alignment aligned-rep-seqs16S.qza  
> Running external command line application. This may print messages to stdout and/or stderr.  
> The command being run is below. This command cannot be manually re-run as it will depend on temporary files that no longer exist.
> 
> Command: mafft --preservecase --inputorder --thread 1 /tmp/qiime2-archive-f7w26wyx/62e87efe-51a9-454e-8935-82e5168eb19c/data/dna-sequences.fasta
> 
> inputfile = orig  
> 836222 x 445 - 267 d  
> nthread = 1  
> stacksize: 8192 kb-\>163324 kb  
> generating a scoring matrix for nucleotide (dist=200) ... done  
> Gap Penalty = -1.53, +0.00, +0.00
> 
> Making a distance matrix ..  
> /home/qiime2/miniconda/envs/qiime2-2018.4/bin/mafft: line 2440: 2982 Killed "$prefix/disttbfast" -q $npickup -E $cycledisttbfast -V "-"$gopdist -s $unalignlevel $legacygapopt $mergearg -W $tuplesize $termgapopt $outnum $addarg $add2ndhalfarg -C $numthreadstb $memopt $weightopt $treeinopt $treeoutopt $distoutopt $seqtype $model -f "-"$gop -Q $spfactor -h $aof $param\_fft $algopt $treealg $scoreoutarg \< infile \> pre 2\>\> "$progressfile"  
> Traceback (most recent call last):  
> File "/home/qiime2/miniconda/envs/qiime2-2018.4/lib/python3.5/site-packages/q2cli/commands.py", line 274, in **call**  
> results = action(\*\*arguments)  
> File "", line 2, in mafft  
> File "/home/qiime2/miniconda/envs/qiime2-2018.4/lib/python3.5/site-packages/qiime2/sdk/action.py", line 231, in bound\_callable  
> output\_types, provenance)  
> File "/home/qiime2/miniconda/envs/qiime2-2018.4/lib/python3.5/site-packages/qiime2/sdk/action.py", line 366, in _callable\_executor_  
> output\_views = self.\_callable(\*\*view\_args)  
> File "/home/qiime2/miniconda/envs/qiime2-2018.4/lib/python3.5/site-packages/q2\_alignment/\_mafft.py", line 61, in mafft  
> run\_command(cmd, aligned\_fp)  
> File "/home/qiime2/miniconda/envs/qiime2-2018.4/lib/python3.5/site-packages/q2\_alignment/\_mafft.py", line 27, in run\_command  
> subprocess.run(cmd, stdout=output\_f, check=True)  
> File "/home/qiime2/miniconda/envs/qiime2-2018.4/lib/python3.5/subprocess.py", line 398, in run  
> output=stdout, stderr=stderr)  
> subprocess.CalledProcessError: Command '['mafft', '--preservecase', '--inputorder', '--thread', '1', '/tmp/qiime2-archive-f7w26wyx/62e87efe-51a9-454e-8935-82e5168eb19c/data/dna-sequences.fasta']' returned non-zero exit status 1
> 
> Plugin error from alignment:
> 
> Command '['mafft', '--preservecase', '--inputorder', '--thread', '1', '/tmp/qiime2-archive-f7w26wyx/62e87efe-51a9-454e-8935-82e5168eb19c/data/dna-sequences.fasta']' returned non-zero exit status 1
> 
> See above for debug info.

Where do i go from here?  
Thanks

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [May 25, 2018, 2:49pm UTC](https://forum.qiime2.org/t/mafft-error-with-virtual-box/4285/2 "2018-05-25T14:49:54Z")

</div>



---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [May 28, 2018, 12:03am UTC](https://forum.qiime2.org/t/mafft-error-with-virtual-box/4285/3 "2018-05-28T00:03:50Z")

</div>

Hi there @mshelomi1!

> [@mshelomi1](#):
>
> I have successfully installed Qiime2-2018.4 on my virtual box running Ubuntu

This looks like `MAFFT` ran out of memory while working. You could try to increase the memory available on your virtual machine, check out these posts for more:

[https://forum.qiime2.org/search?q=virtualbox%20memory](https://forum.qiime2.org/search?q=virtualbox%20memory)

Let us know how it goes. 🦖 :qiime2:

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [May 28, 2018, 12:03am UTC](https://forum.qiime2.org/t/mafft-error-with-virtual-box/4285/4 "2018-05-28T00:03:54Z")

</div>



---

<div class="post-metadata">

**Author:** ![mshelomi](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mshelomi/32/1721_2.png) [@mshelomi](https://forum.qiime2.org/u/mshelomi)\
**Post date:** [May 28, 2018, 2:32am UTC](https://forum.qiime2.org/t/mafft-error-with-virtual-box/4285/5 "2018-05-28T02:32:50Z")

</div>

It's already at maximum, around 35GB RAM. The file is just too big. Thanks anyway.

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [June 28, 2018, 8:32am UTC](https://forum.qiime2.org/t/mafft-error-with-virtual-box/4285/6 "2018-06-28T08:32:54Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
