Entering edit mode
8.2 years ago
philipp
▴
30
Hey,
I have a question concerning parsng NCBI BLAST XML outputs. I can parse the hsp score of the BLAST results. Unfortunately, I face difficulties parsing other entries in the XML.
I need to parse hsp_query-from, hsp_query-to, hsp_align-len, and hsp_identity.
This code works:
for record in NCBIXML.parse(result_handle):
for alignment in record.alignments:
for hsp in alignment.hsps:
hsp_score = hsp.score
How can I get the other entries? Especially hsp_query-from seems to be tricky because "from" is reserved by python.
I appreciate your help a lot!
Best, Philipp