Thank you for this script! I'm having a few problems with it, however. I'm getting the following error:
Traceback (most recent call last):
File "XML_filter2.py", line 6, in <module>
for alignment in blast_records.alignments:
AttributeError: 'generator' object has no attribute 'alignments'
I know that the parse function should give back an alignments object, but I can't figure out what's going wrong. Do you have any idea what the problem is? If I remove the ".alignments" it gives me back the same error except for attribute "length". I'm on BioPython 1.6.5
0.3 is not a strict e-value. Try something like 1e-50. That could be considered strict.