# Panphlan Profiling Error

**URL:** <https://forum.biobakery.org/t/panphlan-profiling-error/2840>\
**Category:** PanPhlAn\
**Created:** [November 27, 2021, 3:07am UTC](https://forum.biobakery.org/t/panphlan-profiling-error/2840 "2021-11-27T03:07:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nichole\_Giani](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/nichole_giani/32/1105_2.png) [@Nichole\_Giani](https://forum.biobakery.org/u/Nichole_Giani)\
**Post date:** [November 27, 2021, 3:07am UTC](https://forum.biobakery.org/t/panphlan-profiling-error/2840/1 "2021-11-27T03:07:44Z")

</div>

Hi,  
I have been trying to use Panphlan on my data set as well as the example on the github page and for some reason when I try to do the profiling step it gives me this error for both my sample and the example one:

STEP 2. Create coverage matrix  
Traceback (most recent call last):  
File “/home/bcampbell/anaconda3/envs/panphlan/bin/panphlan\_profiling.py”, line 948, in   
main()  
File “/home/bcampbell/anaconda3/envs/panphlan/bin/panphlan\_profiling.py”, line 880, in main  
dna\_samples\_covs = read\_map\_results(args.i\_dna, args.verbose)  
File “/home/bcampbell/anaconda3/envs/panphlan/bin/panphlan\_profiling.py”, line 314, in read\_map\_results  
dna\_samples\_covs[dna\_sample\_id] = read\_gene\_cov\_file(dna\_covs\_file)  
File “/home/bcampbell/anaconda3/envs/panphlan/bin/panphlan\_profiling.py”, line 290, in read\_gene\_cov\_file  
f = open(input\_file, mode=‘rt’)  
FileNotFoundError: [Errno 2] No such file or directory: ‘DXB72\_08775\t721’

I think it might be a problem with something we downloaded or need to download but not sure what it might be.

Also, do you know why some samples would work for the mapping step and others don’t. I have some samples that go super fast during the mapping process (almost the same file size as the others) and the output is 0.

Thank you for your help!!  
Nichole

---

<div class="post-metadata">

**Author:** ![leonard.dubois](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/leonard.dubois/32/750_2.png) [@leonard.dubois](https://forum.biobakery.org/u/leonard.dubois)\
**Post date:** [December 3, 2021, 3:38pm UTC](https://forum.biobakery.org/t/panphlan-profiling-error/2840/2 "2021-12-03T15:38:16Z")

</div>

Hi,

it looks like PanPhlAn cannot find the result files from the mapping step. Are you sure you specified the right path ?

I’m not sure what you mean by “the output is 0”, do you have a 0 coverage for all gene families or is the result file empty ?

---

<div class="post-metadata">

**Author:** ![Nichole\_Giani](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/nichole_giani/32/1105_2.png) [@Nichole\_Giani](https://forum.biobakery.org/u/Nichole_Giani)\
**Post date:** [December 5, 2021, 10:50pm UTC](https://forum.biobakery.org/t/panphlan-profiling-error/2840/3 "2021-12-05T22:50:03Z")

</div>

Hi!

Yeah I tried it many times for my samples and the example ones and it gives me the same error with the right paths to the mapping files.

Sorry! I meant that the file is empty for only some samples.

Thank you!

---

<div class="post-metadata">

**Author:** ![leonard.dubois](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/leonard.dubois/32/750_2.png) [@leonard.dubois](https://forum.biobakery.org/u/leonard.dubois)\
**Post date:** [December 6, 2021, 12:02pm UTC](https://forum.biobakery.org/t/panphlan-profiling-error/2840/4 "2021-12-06T12:02:36Z")

</div>

Hello,

you’re problem is simply a misuse of the input parameter. If you check the wiki [here](https://github.com/SegataLab/panphlan/wiki/PanPhlAn-profiling-3_0)

> `--i_dna` [or `-i`] input directory countaining the `panphlan_map.py` results OR a text file with all paths of the files to input

In your case it seems that you specified the first file as input argument. Something like this:

```auto
panphlan_profiling.py -i map_results_erectale/CCMD34381688ST-21-0_erectale.csv --o_matrix output_matrix.tsv -p Eubacterium_rectale/Eubacterium_rectale_pangenome.tsv -v

```

So PanPhlAn understand that the given file is a list of all paths to the actual inputs files. `DXB72_08775\t721` is the very first line of the `CCMD34381688ST-21-0_erectale.csv` file.

To fix it just specify

```auto
panphlan_profiling.py -i map_results_erectale/ --o_matrix output_matrix.tsv -p Eubacterium_rectale/Eubacterium_rectale_pangenome.tsv -v

```

Or if you want to run the profiling on a subset of the files, save their path into a txt file and give this one as input for PanPhlan

Hope that will solve your problem  
Leonard
