Thanks for your early answer. Are these parsers usually written in java? My programming languages only comprise Perl, Python, R, bash and MySQL. Even so, I'll see if I can work on it.
Convert XML file to FASTA
Hi everyone,
I have downloaded polypeptide data which format is called Chado XML. As I opened it, it seems quite a new format in comparison to other formats, so I would like to know if there's any way to convert to FASTA, as it is the format needed as input.
I really appreciate any help you can provide.
• 5,972 views
•
link
1 answer
write a SAX or Stax parser to extract the data
<name>CG9570-PA</name>
<timelastmodified>2004-06-05 04:27:57</timelastmodified>
<residues>MTCTLVLLIASVLHFRMRGSCLLDIERFPVIPGTIYAGHIAYCAILYFLHDLEILPTRYRSRMGWLTTFLIELVLGVAFMEVLALWLW
CSVEHILHLSTQFVLRRYLGVSTEVYQRWEWAIMGGLMTTLAAMLWINAFEATETTKAERVSKDVKDIRMKAVLCQREEKQKQDHDLEKIEQPAPEPEESQNPDEVQLPENHLK
LLATTTDC</residues>
<is_obsolete>0</is_obsolete>
<uniquename>FBpp0070001</uniquename>
<seqlen>210</seqlen>
<md5checksum>54d605138ac28e802cdf493751b71b17</md5checksum>
• 0 views
•
link
• 0 views
•
link
In the end I found a site in the same database where the data is included in the desired format, so I didn't need to perform it. Anyway, thanks for your help.
• 0 views
•
link
Log in to answer this question.
According to this wiki page, there's a way to convert TO Chado XML using bioperl, maybe it can be used the other way around as well?
Yes, unfortunately, it seems that it only works the other way around, obtaining XML files instead of getting rid of them.