# Metaphlan3 to graphlan

**URL:** <https://forum.biobakery.org/t/metaphlan3-to-graphlan/3845>\
**Category:** GraPhlAn\
**Created:** [July 17, 2022, 3:49pm UTC](https://forum.biobakery.org/t/metaphlan3-to-graphlan/3845 "2022-07-17T15:49:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mad\_Cat](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/mad_cat/32/1559_2.png) [@Mad\_Cat](https://forum.biobakery.org/u/Mad_Cat)\
**Post date:** [July 17, 2022, 3:49pm UTC](https://forum.biobakery.org/t/metaphlan3-to-graphlan/3845/1 "2022-07-17T15:49:56Z")

</div>

Hi!  
I wanted to ask for help with Galaxy module ([Galaxy](http://huttenhower.sph.harvard.edu/galaxy/)) of GraPhlAn. When trying to Annotate tree on a file (guide.txt) taken from here ([graphlan · biobakery/biobakery Wiki · GitHub](https://github.com/biobakery/biobakery/wiki/graphlan#rst-header-graphlan-galaxy-module)), the following error is presented.  
Traceback (most recent call last):  
File “/galaxy-central/tools/graphlan/graphlan\_annotate.py”, line 56, in   
ctree.annotate( args[‘annot’], args[‘outtree’] if args[‘outtree’] else args[‘intree’] ) # ,  
File “/galaxy-central/tools/graphlan/src/graphlan\_lib.py”, line 170, in annotate  
cl = list(self.tree.find\_clades( {“name”: clade[:-1]} ))  
File “/galaxy\_venv/local/lib/python2.7/site-packages/Bio/Phylo/BaseTree.py”, line 360, in match\_attrs  
found = elem.find\_any(target, \*\*kwargs)  
File “/galaxy\_venv/local/lib/python2.7/site-packages/Bio/Phylo/BaseTree.py”, line 296, in find\_any  
return next(hits)  
File “/galaxy\_venv/local/lib/python2.7/site-packages/Bio/Phylo/BaseTree.py”, line 140, in match  
re.match(pattern + ‘$’, target))  
File “/galaxy\_venv/lib/python2.7/re.py”, line 137, in match  
return \_compile(pattern, flags).match(string)  
File “/galaxy\_venv/lib/python2.7/re.py”, line 244, in \_compile  
raise error, v # invalid expression  
sre\_constants.error: nothing to repeat

Thank you in advance!
