blastxml

6 views
Skip to first unread message

Wenlan Tian

unread,
Apr 29, 2013, 2:17:08 PM4/29/13
to biop...@googlegroups.com
Hi,all,
I had done a blastall search and got a xml output file. How could i parse
it to other format? I've found many scripts online, but no one worked. I am
new to linux. Can anyone give me a good script to use?

Thanks,
Vivi
_______________________________________________
Bioperl-l mailing list
Biop...@lists.open-bio.org
http://lists.open-bio.org/mailman/listinfo/bioperl-l

Peter Cock

unread,
May 15, 2013, 5:07:42 PM5/15/13
to Wenlan Tian, biop...@googlegroups.com
On Monday, April 29, 2013, Wenlan Tian wrote:
Hi,all,
I had done a blastall search and got a xml output file. How could i parse
it to other format? I've found many scripts online, but no one worked. I am
new to linux. Can anyone give me a good script to use?

Thanks,
Vivi

Hi Vivi,

What format are you trying to convert the BLAST XML into?

Have you looked at BioPerl's SearchIO module?

If you also know Python, I'd suggest trying Biopython's new
experimental SearchIO module which would let you convert
BLAST XML to tabular for example:

Or my older standalone Python script to do that
(which comes with a Galaxy wrapper), see:

Peter

Smithies, Russell

unread,
May 16, 2013, 5:03:30 PM5/16/13
to Wenlan Tian, biop...@googlegroups.com
There are several options depending on how much data you have:
1) re-run the blast searches using a more appropriate output format
2) use the BioPerl SearchIO module with option -format=>'blastxml'
3) use an XSLT to transform your xml to a tabular format
4) use simple grep, sed, and awk commands to extract the bits you want

--Russell
=======================================================================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
=======================================================================
Reply all
Reply to author
Forward
0 new messages