faqts : Computers : Programming : Languages : Python

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 2 people (50%) answered Yes
Recently 1 of 2 people (50%) answered Yes

Entry

using os.system to run Blast within python script

May 12th, 2006 10:54
Reed O'Brien, Halimah Rabiu, http://www.python.org/doc/current/lib/module-subprocess.html


As of 2.4 subprocess replaces os.system (et al). 
I don't otherwise how you run blast. but probably something like. See
subprocess module documentation for more.
import subprocess
blast = subprocess.Popen("PATH/TO/BLAST", shell=True)