# Error during Strainphlan calling blast?

**URL:** <https://forum.biobakery.org/t/error-during-strainphlan-calling-blast/946>\
**Category:** StrainPhlAn\
**Created:** [August 31, 2020, 2:27pm UTC](https://forum.biobakery.org/t/error-during-strainphlan-calling-blast/946 "2020-08-31T14:27:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jane](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@jane](https://forum.biobakery.org/u/jane)\
**Post date:** [August 31, 2020, 2:27pm UTC](https://forum.biobakery.org/t/error-during-strainphlan-calling-blast/946/1 "2020-08-31T14:27:08Z")

</div>

Hi,  
I’m following the tutorial here and having an issue at the step 3:

> **[biobakery/biobakery](https://github.com/biobakery/biobakery/wiki/strainphlan3)**
>
> bioBakery tools for meta'omic profiling. Contribute to biobakery/biobakery development by creating an account on GitHub.

**$ strainphlan -s consensus\_markers\_6A/_.pkl -m clade\_markers\_6A/s\_\_Bacteroides\_vulgatus.fna -r reference\_genomes/_.fna -o output\_6A -n 8 -c s\_\_Bacteroides\_vulgatus --phylophlan\_mode fast --nproc 4**  
_Mon Aug 31 23:19:26 2020: Start StrainPhlAn 3.0 execution_  
_Mon Aug 31 23:19:26 2020: Creating temporary directory…_  
_Mon Aug 31 23:19:26 2020: Done._  
_Mon Aug 31 23:19:26 2020: Getting markers from main sample files…_  
_Mon Aug 31 23:19:26 2020: Done._  
_Mon Aug 31 23:19:26 2020: Getting markers from main reference files…_  
_Mon Aug 31 23:19:27 2020: Done._  
_Mon Aug 31 23:19:27 2020: Removing bad markers / samples…_  
_Mon Aug 31 23:19:27 2020: Done._  
_Mon Aug 31 23:19:27 2020: Writing samples as markers’ FASTA files…_  
_Mon Aug 31 23:19:27 2020: Done._  
_Mon Aug 31 23:19:27 2020: Writing filtered clade markers as FASTA file…_  
_Mon Aug 31 23:19:27 2020: Done._  
_Mon Aug 31 23:19:27 2020: Calculating polymorphic rates…_  
_Mon Aug 31 23:19:27 2020: Done._  
_Mon Aug 31 23:19:27 2020: Executing PhyloPhlAn 3.0…_  
_Mon Aug 31 23:19:27 2020: Creating PhyloPhlAn 3.0 database…_  
_Mon Aug 31 23:19:27 2020: Done._  
_Mon Aug 31 23:19:27 2020: Generating PhyloPhlAn 3.0 configuration file…_  
_Mon Aug 31 23:19:27 2020: Done._  
_Mon Aug 31 23:19:27 2020: Processing samples…_  
_[e] Command ‘[’/opt/anaconda3/envs/metaphlan-3.0/bin/makeblastdb’, ‘-parse\_seqids’, ‘-dbtype’, ‘nucl’, ‘-in’, ‘output\_6A/tmpedq7rt4k/s\_\_Bacteroides\_vulgatus/s\_\_Bacteroides\_vulgatus.fna’, ‘-out’, ‘output\_6A/tmpedq7rt4k/s\_\_Bacteroides\_vulgatus/s\_\_Bacteroides\_vulgatus’]’ returned non-zero exit status 1._

_[e] cannot execute command_

- command\_line: /opt/anaconda3/envs/metaphlan-3.0/bin/makeblastdb -parse\_seqids -dbtype nucl -in output\_6A/tmpedq7rt4k/s\_\_Bacteroides\_vulgatus/s\_\_Bacteroides\_vulgatus.fna -out output\_6A/tmpedq7rt4k/s\_\_Bacteroides\_vulgatus/s\_\_Bacteroides\_vulgatus\*
- 

```
      stdin: None*

```

- 

```
     stdout: None*

```

- 

```
        env: {'TERM_PROGRAM': 'Apple_Terminal', 'SHELL': '/bin/bash', 'TERM': 'xterm-256color', 'TMPDIR': '/var/folders/tt/t3zlksc51kz4t1hrfzz9sfg80000gn/T/', 'CONDA_SHLVL': '2', 'CONDA_PROMPT_MODIFIER': '(metaphlan-3.0) ', 'TERM_PROGRAM_VERSION': '433', 'TERM_SESSION_ID': '8EA4A4B7-8CF4-4B7A-9F2E-FEF1AEE107E3', 'USER': 'sijiyeon', 'CONDA_EXE': '/opt/anaconda3/bin/conda', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.qxFgVtcqtU/Listeners', ' __CF_USER_TEXT_ENCODING': '0x1F5:0x0:0x0', '_CE_CONDA': '', 'CONDA_PREFIX_1': '/opt/anaconda3', 'PATH': '/opt/anaconda3/envs/metaphlan-3.0/bin:/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/sijiyeon/blast-2.2.22/bin:/Users/sijiyeon/seqtk:/Users/sijiyeon/Gblocks_0.91b:/Users/sijiyeon/graphlan:/opt/anaconda3/bin/bowtie2:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin', 'LaunchInstanceID': '30E02370-A829-436E-A3F3-8BD36D6C7D9D', '_': '/opt/anaconda3/envs/metaphlan-3.0/bin/strainphlan', 'CONDA_PREFIX': '/opt/anaconda3/envs/metaphlan-3.0', 'PWD': '/Users/sijiyeon/Dropbox/---201701_b.vulg_data_analysis/02_2_Bvul_highfat_pooled_shotgun/fastq', 'XPC_FLAGS': '0x0', '_CE_M': '', 'XPC_SERVICE_NAME': '0', 'SHLVL': '1', 'HOME': '/Users/sijiyeon', '__ KMP_REGISTERED_LIB_4785': '0x10d3fe168-cafeaf19-libomp.dylib', 'CONDA_PYTHON_EXE': '/opt/anaconda3/bin/python', 'LOGNAME': 'sijiyeon', 'LC_CTYPE': 'UTF-8', 'CONDA_DEFAULT_ENV': 'metaphlan-3.0', 'DISPLAY': '/private/tmp/com.apple.launchd.tBb97xkeae/org.macosforge.xquartz:0', 'SECURITYSESSIONID': '186a6', 'JAVA_HOME8': '/Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home'}*

```

_[e] An error was ocurred executing a external tool, exiting…_

This is how I installed metaphylan (installed today):  
**conda create -n metaphlan-3.0 python=3.7**  
**conda activate metaphlan-3.0 && conda install metaphlan=3.0.3**

And my phylophylan version is:  
**PhyloPhlAn version 3.0.51 (11 May 2020)**

What could be the possible cause? Thank you already!

---

<div class="post-metadata">

**Author:** ![aitor.blancomiguez](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/aitor.blancomiguez/32/86_2.png) [@aitor.blancomiguez](https://forum.biobakery.org/u/aitor.blancomiguez)\
**Post date:** [September 1, 2020, 7:50am UTC](https://forum.biobakery.org/t/error-during-strainphlan-calling-blast/946/2 "2020-09-01T07:50:33Z")

</div>

Hi @jane  
Thanks for getting in contact. I think the problem is related with the PhyloPhlAn version conda installed. With MetaPhlAn 3.0.3 the PhyloPhlAn you should have installed would be:  
PhyloPhlAn version 3.0.54 (26 August 2020)  
Please, execute:  
$ conda install -c bioconda phylophlan  
And it should retrieve the last phylophlan version available. I hope this fix your problem.  
Best,  
Aitor

---

<div class="post-metadata">

**Author:** ![jane](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@jane](https://forum.biobakery.org/u/jane)\
**Post date:** [September 1, 2020, 10:00am UTC](https://forum.biobakery.org/t/error-during-strainphlan-calling-blast/946/3 "2020-09-01T10:00:28Z")

</div>

Hi Aitor,

Indeed! Phylophlan was the cause.  
The problem was solved! Thank you so much 😃  
Best,  
Jane
