# How to input dual-end data in Metaphlan

**URL:** <https://forum.biobakery.org/t/how-to-input-dual-end-data-in-metaphlan/8278>\
**Category:** MetaPhlAn\
**Created:** [July 20, 2025, 5:53am UTC](https://forum.biobakery.org/t/how-to-input-dual-end-data-in-metaphlan/8278 "2025-07-20T05:53:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![linhuang](https://avatars.discourse-cdn.com/v4/letter/l/71e660/32.png) [@linhuang](https://forum.biobakery.org/u/linhuang)\
**Post date:** [July 20, 2025, 5:53am UTC](https://forum.biobakery.org/t/how-to-input-dual-end-data-in-metaphlan/8278/1 "2025-07-20T05:53:11Z")

</div>

I used this command metaphlan -1 ./rawdata\_fq/SRR5898908\_1.fastq -2 ./rawdata\_fq/SRR5898908\_2.fastq --input\_type fastq --subsampling\_paired 5327757 \> ./R\_Taxonomy/SRR5898908.txt, but it reported an error. Can’t it recognize paired-end data? This is the error content: Sun Jul 20 12:39:21 2025: [Warning] It seems that you do not have Internet access.  
Sun Jul 20 12:39:21 2025: [Warning] Cannot connect to the database server. The latest available local database will be used.  
Traceback (most recent call last):  
File “/home/huanglin/anaconda3/envs/Metagenome/bin/metaphlan”, line 10, in   
sys.exit(main())  
File “/home/huanglin/anaconda3/envs/Metagenome/lib/python3.9/site-packages/metaphlan/metaphlan.py”, line 2263, in main  
metaphlan\_runner.run\_metaphlan()  
File “/home/huanglin/anaconda3/envs/Metagenome/lib/python3.9/site-packages/metaphlan/metaphlan.py”, line 1907, in run\_metaphlan  
self.mapping\_controller.run\_mapping()  
File “/home/huanglin/anaconda3/envs/Metagenome/lib/python3.9/site-packages/metaphlan/metaphlan.py”, line 933, in run\_mapping  
self.init\_mapping\_arguments()  
File “/home/huanglin/anaconda3/envs/Metagenome/lib/python3.9/site-packages/metaphlan/metaphlan.py”, line 759, in init\_mapping\_arguments  
self.init\_mapout()  
File “/home/huanglin/anaconda3/envs/Metagenome/lib/python3.9/site-packages/metaphlan/metaphlan.py”, line 697, in init\_mapout  
elif stat.S\_ISFIFO(os.stat(self.inp).st\_mode):  
FileNotFoundError: [Errno 2] No such file or directory: ‘/tmp/tmp5jaxfmgi,/tmp/tmp99lke42\_’

---

<div class="post-metadata">

**Author:** ![Claudia\_Mengoni](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/claudia_mengoni/32/2871_2.png) [@Claudia\_Mengoni](https://forum.biobakery.org/u/Claudia_Mengoni)\
**Post date:** [September 11, 2025, 10:17am UTC](https://forum.biobakery.org/t/how-to-input-dual-end-data-in-metaphlan/8278/2 "2025-09-11T10:17:07Z")

</div>

Hi @linhuang

MetaPhlAn uses the paired information only when performing the paired subsampling as you are doing. The issue seems to be with the intermediate mapping file, you can try to explicitly specify it (with –bowtie2out until 4.1.\*_, with –mapout since 4.2._\*). To be safe, I suggest you download the latest version of metaphlan (4.2.2)
