# No output after running MetaPhlAn

**URL:** <https://forum.biobakery.org/t/no-output-after-running-metaphlan/5139>\
**Category:** MetaPhlAn\
**Created:** [April 13, 2023, 7:07pm UTC](https://forum.biobakery.org/t/no-output-after-running-metaphlan/5139 "2023-04-13T19:07:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamsorbie](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/adamsorbie/32/2099_2.png) [@adamsorbie](https://forum.biobakery.org/u/adamsorbie)\
**Post date:** [April 13, 2023, 7:07pm UTC](https://forum.biobakery.org/t/no-output-after-running-metaphlan/5139/1 "2023-04-13T19:07:30Z")

</div>

Hi,

I have a strange issue similar to this one: [Metaphlan 3 runs, but does not produce output files](https://forum.biobakery.org/t/metaphlan-3-runs-but-does-not-produce-output-files/3689). I’m running MetaPhlAn version 4.0.6 on a cluster, installed via pip. The job runs for around an hour or two and completes without any errror but there are no profiles in the output and accordingly the merge script fails. Unfrotunately the fix suggested in the above link does not work for me.

Here is the command I am running:

```auto
run_metaphlan(){

echo "Running" $(metaphlan --v)

# make metaphlan folder

mkdir -p ${analysis_folder}/${study}/metaphlan/{profiles,merged_table}

filelist=$(ls -d ${data_dir}/*_1.fastq | awk '{print $NF}')

for read in ${filelist};

do

sample=$(basename ${read} | cut -f1 -d"_")

R1=${data_dir}/${sample}_1_kneaddata_paired_1.fastq

R2=${data_dir}/${sample}_1_kneaddata_paired_2.fastq

echo "Running metaphlan on sample ${sample}"

metaphlan $R1,$R2 --input_type fastq --bowtie2out $db/${sample}.bowtie2.bz2 --index $index --bowtie2db $db -o ${analysis_folder}/${study}/metaphlan/profiles/${sample}_profile.txt --nproc 4

done

}

```

I tried re-directing stdout of the command to a log file but it’s not very informative:

```auto
/bin/sh: /dss/lrzsys/sys/spack/release/22.2.1/opt/x86_64/miniconda3/4.10.3-gcc-3vesgdq/lib/libtinfo.so.6: no version information available (required by /lib64/libreadline.so.7)
/bin/sh: /dss/lrzsys/sys/spack/release/22.2.1/opt/x86_64/miniconda3/4.10.3-gcc-3vesgdq/lib/libtinfo.so.6: no version information available (required by /lib64/libreadline.so.7)
26040999 94.95095180488275

```

I did notice that the bowtie index files are produced but they are empty, so there could be an issue here. I also tested the same script on my laptop minus the SLURM parameters, on a subset of the data and it works fine, so I would guess it’s something to do with the environment but I can’t seem to figure out what. Any idea what could be going on here?

thanks,

Adam

---

<div class="post-metadata">

**Author:** ![MalbertR](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/malbertr/32/1075_2.png) [@MalbertR](https://forum.biobakery.org/u/MalbertR)\
**Post date:** [December 18, 2023, 1:11pm UTC](https://forum.biobakery.org/t/no-output-after-running-metaphlan/5139/2 "2023-12-18T13:11:50Z")

</div>

Hi @adamsorbie Did you ever find the solution for this? I am in a similar situation.

It seems like it’s giving some statistics, the first number for example I am pretty sure is the number of reads processed. But no output, no errors. I am also running on our HPC cluster with SLURM scheduler.

I have tried the exact same command for 4.0.4 and it does produce the expected output files. So, it has to be something to do with Metaphlan4.0.6 version specifically (I am using the container: [Quay](http://quay.io/biocontainers/metaphlan:4.0.6--pyhca03a8a_0))?

---

<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:** [March 5, 2024, 9:45am UTC](https://forum.biobakery.org/t/no-output-after-running-metaphlan/5139/3 "2024-03-05T09:45:10Z")

</div>

Hi, metaphlan output is reported by standard output, you can capture into a file as:  
metaphlan $R1,$R2 --input\_type fastq --bowtie2out $db/${sample}.bowtie2.bz2 --index $index --bowtie2db $db --nproc 4 \> ${analysis\_folder}/${study}/metaphlan/profiles/${sample}\_profile.txt
