# q2-picrust2 error in running full pipeline on qiime2-2019.4

**URL:** <https://forum.qiime2.org/t/q2-picrust2-error-in-running-full-pipeline-on-qiime2-2019-4/9780>\
**Category:** Library Support\
**Created:** [May 15, 2019, 10:11am UTC](https://forum.qiime2.org/t/q2-picrust2-error-in-running-full-pipeline-on-qiime2-2019-4/9780 "2019-05-15T10:11:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chandrashekar\_M](https://forum.qiime2.org/user_avatar/forum.qiime2.org/chandrashekar_m/32/4718_2.png) [@Chandrashekar\_M](https://forum.qiime2.org/u/Chandrashekar_M)\
**Post date:** [May 15, 2019, 10:11am UTC](https://forum.qiime2.org/t/q2-picrust2-error-in-running-full-pipeline-on-qiime2-2019-4/9780/1 "2019-05-15T10:11:09Z")

</div>

I tried running dada2 output in q2-picrust2 plugin installed via conda in qiime2-2019.4 environment installed natively via conda on a system with 8 Gb ram and using 3 threads, there are about ~20,000 ASVs. The command runs completely (when in quiet mode) but no output directory is generated. Detailed error with verbose is given below, hsp method used mp.

(qiime2-2019.4) chandu@chandu-Inspiron-N4010:~$ qiime picrust2 full-pipeline --i-table /home/chandu/NPDF\_qiime\_z840/resultdada\_f260\_r220/table.qza --i-seq /home/chandu/NPDF\_qiime\_z840/resultdada\_f260\_r220/representative\_sequences.qza --p-threads 3 --p-hsp-method mp --p-max-nsti 2 --o-ko-metagenome ko\_dada2 --o-ec-metagenome ec\_dada2 --o-pathway-abundance pathway\_dada2 --verbose

20591 of 20591 sequence ids overlap between input table and FASTA.

Placing sequences onto reference tree  
place\_seqs.py --study\_fasta /tmp/tmpb\_e1cqb2/seqs.fna --ref\_dir /home/chandu/miniconda2/envs/qiime2-2019.4/lib/python3.6/site-packages/picrust2/default\_files/prokaryotic/pro\_ref --out\_tree /tmp/tmpb\_e1cqb2/picrust2\_out/out.tre --threads 3 --intermediate /tmp/tmpb\_e1cqb2/picrust2\_out/intermediate/place\_seqs --chunk\_size 5000 --print\_cmds

Error running this command:  
place\_seqs.py --study\_fasta /tmp/tmpb\_e1cqb2/seqs.fna --ref\_dir /home/chandu/miniconda2/envs/qiime2-2019.4/lib/python3.6/site-packages/picrust2/default\_files/prokaryotic/pro\_ref --out\_tree /tmp/tmpb\_e1cqb2/picrust2\_out/out.tre --threads 3 --intermediate /tmp/tmpb\_e1cqb2/picrust2\_out/intermediate/place\_seqs --chunk\_size 5000 --print\_cmds

Standard output of failed command:  
""

Standard error of failed command:  
"hmmalign --trim --dna --mapali /home/chandu/miniconda2/envs/qiime2-2019.4/lib/python3.6/site-packages/picrust2/default\_files/prokaryotic/pro\_ref/pro\_ref.fna.gz --informat FASTA -o /tmp/tmpb\_e1cqb2/picrust2\_out/intermediate/place\_seqs/query\_align.stockholm /home/chandu/miniconda2/envs/qiime2-2019.4/lib/python3.6/site-packages/picrust2/default\_files/prokaryotic/pro\_ref/pro\_ref.hmm /tmp/tmpb\_e1cqb2/seqs.fna  
epa-ng --tree /home/chandu/miniconda2/envs/qiime2-2019.4/lib/python3.6/site-packages/picrust2/default\_files/prokaryotic/pro\_ref/pro\_ref.tre --ref-msa /tmp/tmpb\_e1cqb2/picrust2\_out/intermediate/place\_seqs/ref\_seqs\_hmmalign.fasta --query /tmp/tmpb\_e1cqb2/picrust2\_out/intermediate/place\_seqs/study\_seqs\_hmmalign.fasta --chunk-size 5000 -T 3 -m /home/chandu/miniconda2/envs/qiime2-2019.4/lib/python3.6/site-packages/picrust2/default\_files/prokaryotic/pro\_ref/pro\_ref.model -w /tmp/tmpb\_e1cqb2/picrust2\_out/intermediate/place\_seqs/epa\_out --filter-acc-lwr 0.5 --filter-max 20

Error running this command:  
epa-ng --tree /home/chandu/miniconda2/envs/qiime2-2019.4/lib/python3.6/site-packages/picrust2/default\_files/prokaryotic/pro\_ref/pro\_ref.tre --ref-msa /tmp/tmpb\_e1cqb2/picrust2\_out/intermediate/place\_seqs/ref\_seqs\_hmmalign.fasta --query /tmp/tmpb\_e1cqb2/picrust2\_out/intermediate/place\_seqs/study\_seqs\_hmmalign.fasta --chunk-size 5000 -T 3 -m /home/chandu/miniconda2/envs/qiime2-2019.4/lib/python3.6/site-packages/picrust2/default\_files/prokaryotic/pro\_ref/pro\_ref.model -w /tmp/tmpb\_e1cqb2/picrust2\_out/intermediate/place\_seqs/epa\_out --filter-acc-lwr 0.5 --filter-max 20

Standard output of failed command:  
"INFO Selected: Output dir: /tmp/tmpb\_e1cqb2/picrust2\_out/intermediate/place\_seqs/epa\_out/  
INFO Selected: Query file: /tmp/tmpb\_e1cqb2/picrust2\_out/intermediate/place\_seqs/study\_seqs\_hmmalign.fasta  
INFO Selected: Tree file: /home/chandu/miniconda2/envs/qiime2-2019.4/lib/python3.6/site-packages/picrust2/default\_files/prokaryotic/pro\_ref/pro\_ref.tre  
INFO Selected: Reference MSA: /tmp/tmpb\_e1cqb2/picrust2\_out/intermediate/place\_seqs/ref\_seqs\_hmmalign.fasta  
INFO Selected: Filtering by accumulated threshold: 0.5  
INFO Selected: Maximum number of placements per query: 20  
INFO Selected: Automatic switching of use of per rate scalers  
INFO Selected: Preserving the root of the input tree  
INFO Selected: Specified model file: /home/chandu/miniconda2/envs/qiime2-2019.4/lib/python3.6/site-packages/picrust2/default\_files/prokaryotic/pro\_ref/pro\_ref.model  
INFO Rate heterogeneity: GAMMA (4 cats, mean), alpha: 0.453141 (user), weights&rates: (0.25,0.0250674) (0.25,0.220229) (0.25,0.782933) (0.25,2.97177)  
Base frequencies (user): 0.229585 0.22008 0.298596 0.251739  
Substitution rates (user): 1.00319 2.79077 1.5301 0.87441 3.83966 1  
INFO Selected: Reading queries in chunks of: 5000  
INFO Selected: Using threads: 3  
INFO \_\_\_\_\_\_ \_\_\_\_ \_\_\_ \_ \_\_ \_\_\_\_\_\_  
/ **_// \_\_ \ / | / | / // /  
/ \_\_/ / // // /| | \_\_\_\_\_\_ / |/ // / \_\_  
/ / / // \_\_\_ |/\_\_\_\_\_// /| // // /  
/\_\_\_\_\_/// // || // |_/ \_**\_/ (v0.3.5)  
INFO Output file: /tmp/tmpb\_e1cqb2/picrust2\_out/intermediate/place\_seqs/epa\_out/epa\_result.jplace  
"

Standard error of failed command:

---

<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 19, 2019, 10:17pm UTC](https://forum.qiime2.org/t/q2-picrust2-error-in-running-full-pipeline-on-qiime2-2019-4/9780/2 "2019-05-19T22:17:32Z")

</div>

Maybe @gmdouglas can help out here? :qiime2:

---

<div class="post-metadata">

**Author:** ![gmdouglas](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/g/3be4f8/32.png) [@gmdouglas](https://forum.qiime2.org/u/gmdouglas)\
**Post date:** [May 20, 2019, 6:57am UTC](https://forum.qiime2.org/t/q2-picrust2-error-in-running-full-pipeline-on-qiime2-2019-4/9780/3 "2019-05-20T06:57:21Z")

</div>

Hey @Chandrashekar_M,

EPA-NG takes ~15GB of RAM to run with the default PICRUSt2 reference file. To still use the plugin you can use the alternative read placement step mentioned as the second option here: [q2 picrust2 Tutorial · picrust/picrust2 Wiki · GitHub](https://github.com/picrust/picrust2/wiki/q2-picrust2-Tutorial)

Best,

Gavin
