I have a script available in github which parses blast output from xml to tabular https://github.com/peterjc/galaxy_blast/blob/master/tools/ncbi_blast_plus/blastxml_to_tabular.py but when i run the script it gives the following error::::
*Traceback (most recent call last):
File "blastxml.py", line 328, in <module>
convert(in_file, outfile)
File "blastxmlexcel_sacred.py", line 184, in convert
if re_default_query_id.match(qseqid):
TypeError: expected string or buffer*
The only is a difference in two blast results is that normal blast has these columns :
<Iteration>
<Iteration_iter-num>1</Iteration_iter-num>
<Iteration_query-ID>Query_15661</Iteration_query-ID>
<Iteration_query-def>gi|927988967|gb|ALE41209.1| GDP-mannose 4,6-dehydratase [mycobacterium]</Iteration_query-def>
<Iteration_query-len>340</Iteration_query-len>
<Iteration_hits>
but my blast result instead have
<Iteration>
<Iteration_iter-num>1</Iteration_iter-num>
<Iteration_hits>
Kindly suggest the changes required to be done
thanks
I added markup to your post for increased readability. You can do this by selecting the text and clicking the 101010 button. When you compose or edit a post that button is in your toolbar, see image below:
thanks WouterDeCoster