To show how this works, I wrote a script that loads my favorite DNA sequence from my desktop and mutagenizes it. This is the function mutagenize():
import os, random, subprocess |
This is the code to call the bl2seq binary:
def blast2(infile1,infile2): |
Of course, one could use the Biopython module to help with this. This is part of the file:
Score = 1572 bits (793), Expect = 0.0 |
The results are saved to a file on my desktop. It is text, apparently there is no option as yet to save the results as XML.