# Sample2markers.py faced Error

**URL:** <https://forum.biobakery.org/t/sample2markers-py-faced-error/7147>\
**Category:** StrainPhlAn\
**Created:** [June 11, 2024, 11:06am UTC](https://forum.biobakery.org/t/sample2markers-py-faced-error/7147 "2024-06-11T11:06:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![StickHu](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/stickhu/32/1951_2.png) [@StickHu](https://forum.biobakery.org/u/StickHu)\
**Post date:** [June 11, 2024, 11:06am UTC](https://forum.biobakery.org/t/sample2markers-py-faced-error/7147/1 "2024-06-11T11:06:54Z")

</div>

Hi, While I was using the Metaphlan4.1.1 sample2markers.py to extract each sample’s marker to the consensus marker directory. The problem occurred. Could you please help me solve that. The database is the latest version.

sample2markers.py -i \*.sam.bz2 -o consensus\_markers -n 10  
Tue Jun 11 18:48:21 2024: Start samples to markers execution  
Tue Jun 11 18:48:21 2024: Using samtools version 1.13  
Tue Jun 11 18:48:21 2024: Creating temporary directory…  
Tue Jun 11 18:48:21 2024: Done.  
Tue Jun 11 18:48:21 2024: Filtering SAM files…  
Tue Jun 11 18:48:21 2024: Loading MetaPhlAn mpa\_vOct22\_CHOCOPhlAnSGB\_202403 database…  
Tue Jun 11 18:48:56 2024: Done.  
Tue Jun 11 18:49:34 2024: [Error] Marker UniClust90\_MANJGFMI01329|1\_\_8|SGB8130 not in the metaphlan database  
Tue Jun 11 18:49:34 2024: Stop execution.  
Tue Jun 11 18:49:39 2024: [Error] Marker UniClust90\_MANJGFMI01329|1\_\_8|SGB8130 not in the metaphlan database  
Tue Jun 11 18:49:39 2024: Stop execution.  
Tue Jun 11 18:49:43 2024: [Error] Marker UniRef90\_A5YTT9|1\_\_4|SGB8130 not in the metaphlan database  
Tue Jun 11 18:49:43 2024: Stop execution.  
Tue Jun 11 18:49:48 2024: [Error] Marker UniRef90\_D4FSC7|1\_\_14|SGB8130 not in the metaphlan database  
Tue Jun 11 18:49:48 2024: Stop execution.  
Tue Jun 11 18:49:52 2024: [Error] Marker UniRef90\_I0Q4X7|1\_\_15|SGB8130 not in the metaphlan database  
Tue Jun 11 18:49:52 2024: Stop execution.  
Tue Jun 11 18:49:56 2024: [Error] Marker UniRef90\_A5YTT9|1\_\_4|SGB8130 not in the metaphlan database  
Tue Jun 11 18:49:56 2024: Stop execution.

---

<div class="post-metadata">

**Author:** ![Joe](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@Joe](https://forum.biobakery.org/u/Joe)\
**Post date:** [October 24, 2024, 6:01am UTC](https://forum.biobakery.org/t/sample2markers-py-faced-error/7147/2 "2024-10-24T06:01:38Z")

</div>

I have met the same problem, and my steps are same as the tutorial in git hub. My sam files look like

`> FP180000019BRL1C015R02000021589/1 __1.92 16 UniRef90_A0A2W5IBW0|1__ 6|SGB3663 280 42 150M * 0 0 CCCGAGTGGATACAACCTGACGCCGCAGACAATATATACGCATTTGCACAGGGGCCATCTGGCGCTTTCGCAGGTTTTGCACATTGGCATCACGGTAAATTAGAACGTGCTTTCACCGCGACAACCTGCGAAATTCTGGAGGATAAAGGG FFFFFFFF888F88,FF8F,8F88F888FF8F888FFF8FFFFFF88F8FFFFFF8FF8F8F8FFFFF8F8FFFFFFFFFFFFF8FFFFF8F8FFF8F8F888FF8FFFFFFF8FF8FFFF8FFFFFFF8F8FFFFFFF8FFF8888FFF AS:i:0 XN:i:0 XM:i:0 XO:i:0 XG:i:0 NM:i:0 MD:Z:150 YT:Z:UU`

they have the same format with the id in “mpa\_vOct22\_CHOCOPhlAnSGB\_202403\_marker\_info.txt” file ,and I’m sure use mpa\_vOct22\_CHOCOPhlAnSGB\_202403 version of database for both metaphlan and samples2markers.py. How can I fix it?  
can anyone help me ?
