Hi all!
I'm using orthoXML from ete3 toolkit to parse homologous data but I'm encountering some troubles when exporting the orthoXML object. I get a b' prefix in all the names I passed by value. For instance, in the root of the resulting XML file I get the following:
<orthoXML origin=b'"MetaPhOrs"' version="1.000000">
I don't understand why. I just did the same as said in the docs but with the only difference that now I included the origin name. This is the line I have for that:
oxml = orthoxml.orthoXML(origin='MetaPhOrs', version="1.0")
The rest of the code it's exactly the same as found in the docs.
Reading on the source code I noticed that if I delete the part where the encoding is carried out (in the "outfile.write(.....)" lines), the problem is solved. Why it's being done a encoding here?
Is there any other way of getting rid of that b' prefix?
Cheers,
Geovanny Risco.