# Ubuntu app stuck on making phylogenetic tree from merged table.qza

**URL:** <https://forum.qiime2.org/t/ubuntu-app-stuck-on-making-phylogenetic-tree-from-merged-table-qza/11275>\
**Category:** Technical Support\
**Tags:** ion-torrent\
**Created:** [August 27, 2019, 5:23pm UTC](https://forum.qiime2.org/t/ubuntu-app-stuck-on-making-phylogenetic-tree-from-merged-table-qza/11275 "2019-08-27T17:23:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rachel](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/r/46a35a/32.png) [@Rachel](https://forum.qiime2.org/u/Rachel)\
**Post date:** [August 27, 2019, 5:23pm UTC](https://forum.qiime2.org/t/ubuntu-app-stuck-on-making-phylogenetic-tree-from-merged-table-qza/11275/1 "2019-08-27T17:23:27Z")

</div>

Hi, I am running Qiime2 version 2019.4 as a Miniconda3 environment on an Ubuntu Desktop app version 18.04 on a Windows 10 system.

I have been trying to make a phylogenetic tree from a merged Feature[Sequence] table I made.  
I had Ion Torrent 16S sequencing data from multiple runs with MrDNA. I first input .fna and .qual files into split\_libraries.py on Qiime1 and individually imported the resulting seqs.fna files into Qiime2. I dereplicated with vsearch dereplicate-sequences to get individual rep-seqs.qza files. Next I took those and did qiime vsearch cluster-features-open-reference with the Silva 132 release 97% .qza to get rep-seqs-or-97.qza files. Then I used qiime feature-table merge-seqs to merge the rep-seqs-or-97.qza files. Out of this, I got a merged-rep-seqs.qza, and everything was fine up until this point. The merged-rep-seqs.qza is what I have been trying to use for generating the tree.

I enter this:  
(qiime2-2019.4) dkrachel@DESKTOP-LPD2VHA:~/qiime2\_passaic-comparison$ qiime phylogeny align-to-tree-mafft-fasttree --i-sequences merged-rep-seqs.qza --o-alignment aligned-merged-rep-seqs.qza --o-masked-alignment masked-aligned-rep-seqs.qza --o-tree unrooted-tree.qza --o-rooted-tree rooted-tree.qza

and the app never returns anything. It just blinks for a couple hours like it is still working and then the app window goes black.

When I re-ran the same command in the wrong directory:  
(qiime2-2019.4) dkrachel@DESKTOP-LPD2VHA:~$ qiime phylogeny align-to-tree-mafft-fasttree --i-sequences merged-rep-seqs.qza --o-alignment aligned-merged-rep-seqs.qza --o-masked-alignment masked-aligned-rep-seqs.qza --o-tree unrooted-tree.qza --o-rooted-tree rooted-tree.qza

I got this:  
(1/1) Invalid value for "--i-sequences": 'merged-rep-seqs.qza' is not a QIIME  
2 Artifact (.qza)

I can see that the .qza file I'm using should be the correct QIIME2 artifact:  
qiime tools peek merged-rep-seqs.qza  
UUID: 6ee57535-32f5-4f09-bb95-16295325faaf  
Type: FeatureData[Sequence]  
Data format: DNASequencesDirectoryFormat

I've looked up the Ubuntu Desktop app and it says that it has 4 GB system memory. Is this not enough? I know for Qiime1, I allocated 4 GB memory and that was enough to go through an entire similar workflow. I'm wondering if this is a memory issue or something wrong with the file types, or if I missed something?

Thank you.

---

<div class="post-metadata">

**Author:** ![Rachel](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/r/46a35a/32.png) [@Rachel](https://forum.qiime2.org/u/Rachel)\
**Post date:** [August 27, 2019, 5:35pm UTC](https://forum.qiime2.org/t/ubuntu-app-stuck-on-making-phylogenetic-tree-from-merged-table-qza/11275/2 "2019-08-27T17:35:40Z")

</div>

\*\* Sorry, the 4 GB memory was just a recommended system requirement for the Ubuntu Desktop app. So I doubt that is the issue. I have 16 GB RAM.

---

<div class="post-metadata">

**Author:** ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)\
**Post date:** [August 27, 2019, 6:01pm UTC](https://forum.qiime2.org/t/ubuntu-app-stuck-on-making-phylogenetic-tree-from-merged-table-qza/11275/3 "2019-08-27T18:01:19Z")

</div>

Still, it also can be a memory issue. If you are able to run successfully the same with smaller data set, and your current is bigger, I think, you don't have enough of RAM

---

<div class="post-metadata">

**Author:** ![Rachel](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/r/46a35a/32.png) [@Rachel](https://forum.qiime2.org/u/Rachel)\
**Post date:** [August 27, 2019, 7:05pm UTC](https://forum.qiime2.org/t/ubuntu-app-stuck-on-making-phylogenetic-tree-from-merged-table-qza/11275/4 "2019-08-27T19:05:03Z")

</div>

Hi Timanix,

I tried your suggestion and merged only two instead of the four rep-seqs-or-97.qza files I have, then tried to make the tree with that. I'm still having the same problem. (It's been 30 minutes, but I don't expect it will finish.) I have data from only six samples on four different runs. One run has three samples. If it wasn't for that one run with multiple samples, I can make a manifest file and import that way. Dada2 doesn't take the demultiplexed .fasta files I can make in Qiime1 for the multi-sample run, so I had to import everything as .fasta and use clustering. I thought I would be able to process 6 samples on my computer without a problem..?

---

<div class="post-metadata">

**Author:** ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)\
**Post date:** [August 27, 2019, 9:40pm UTC](https://forum.qiime2.org/t/ubuntu-app-stuck-on-making-phylogenetic-tree-from-merged-table-qza/11275/5 "2019-08-27T21:40:24Z")

</div>

Hello Rachel,

Thank you for your detailed posts! Tree building can take some time, but let's make 100% sure your computer is not not running out of RAM.

In Ubuntu, search for and open up 'system monitor'. Let us know know the percent of memory and swap being used:  
[https://1175654.v1.pressablecdn.com/wp-content/uploads/2011/11/screen-shot-2011-11-09-at-14.33.38.jpg](https://1175654.v1.pressablecdn.com/wp-content/uploads/2011/11/screen-shot-2011-11-09-at-14.33.38.jpg)

Hopefully, memory should be under 100% and swap should be 0%. If you see something different, we have found our problem!

Colin

---

<div class="post-metadata">

**Author:** ![Rachel](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/r/46a35a/32.png) [@Rachel](https://forum.qiime2.org/u/Rachel)\
**Post date:** [August 27, 2019, 10:19pm UTC](https://forum.qiime2.org/t/ubuntu-app-stuck-on-making-phylogenetic-tree-from-merged-table-qza/11275/6 "2019-08-27T22:19:29Z")

</div>

Hi Colin,

I'm sorry, I guess it is not Ubuntu Desktop, it is just "Windows Ubuntu". It just looks like a terminal window. I don't know how to see CPU history, but I can see Memory and Swap. I included the Task manager from Windows while it is stuck running this command in the Ubuntu app. Is that helpful?

 ![image](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/9/9df31d839c0a9a49ae3f6a57b48d71bdf70fa1d3.png)

Thank you.

---

<div class="post-metadata">

**Author:** ![Rachel](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/r/46a35a/32.png) [@Rachel](https://forum.qiime2.org/u/Rachel)\
**Post date:** [August 27, 2019, 10:45pm UTC](https://forum.qiime2.org/t/ubuntu-app-stuck-on-making-phylogenetic-tree-from-merged-table-qza/11275/7 "2019-08-27T22:45:28Z")

</div>

If I look higher on the Processes list in Task Manager, I see this disttbfast taking up the most memory.

 ![image](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/6/6fdf34b5e2830d6ecfa54b50bb7dfbc0da93bd78.png)

---

<div class="post-metadata">

**Author:** ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)\
**Post date:** [August 28, 2019, 12:45am UTC](https://forum.qiime2.org/t/ubuntu-app-stuck-on-making-phylogenetic-tree-from-merged-table-qza/11275/8 "2019-08-28T00:45:07Z")

</div>

Thanks for that troubleshooting Rachel!

Sounds like you are running Ubuntu directly through windows using WSL, instead of a VirtualBox or other VM. I'm not super familiar with Windows Subsystem for Linux (WSL), but this is a really great place to start!

Both those windows show 82% through 87% usage of RAM. You mentioned that your computer has 16 GB of RAM, but it looks like those GB are not getting seen by your PC.

This is a real mystery! 🧐 Let's see what the Qiime devs recommend!

Colin

---

<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:** [August 28, 2019, 12:46am UTC](https://forum.qiime2.org/t/ubuntu-app-stuck-on-making-phylogenetic-tree-from-merged-table-qza/11275/9 "2019-08-28T00:46:09Z")

</div>

Good! That means it is running! I think things are working fine, you just aren't letting them run long enough to finish (this command can take a _very long time_). If you want to see live output, run the command with the `--verbose` flag. You might also want to run with [multiple threads](https://docs.qiime2.org/2019.7/plugins/available/phylogeny/align-to-tree-mafft-fasttree/), depending on the capacity of your computation environment.

---

<div class="post-metadata">

**Author:** ![Rachel](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/r/46a35a/32.png) [@Rachel](https://forum.qiime2.org/u/Rachel)\
**Post date:** [August 28, 2019, 1:45pm UTC](https://forum.qiime2.org/t/ubuntu-app-stuck-on-making-phylogenetic-tree-from-merged-table-qza/11275/12 "2019-08-28T13:45:12Z")

</div>

It worked! It took 5 hours to run. I guess I just needed to be patient and adjust my sleep settings. I think I will be switching to a computing cluster soon.

Thank you everyone!

---

<div class="post-metadata">

**Author:** ![jwdebelius](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jwdebelius/32/9655_2.png) [@jwdebelius](https://forum.qiime2.org/u/jwdebelius)\
**Post date:** [September 23, 2019, 7:33am UTC](https://forum.qiime2.org/t/ubuntu-app-stuck-on-making-phylogenetic-tree-from-merged-table-qza/11275/13 "2019-09-23T07:33:34Z")

</div>

A post was split to a new topic: [ANCOM error: msb/msw](https://forum.qiime2.org/t/ancom-error-msb-msw/11631)
