Skip to content
Snippets Groups Projects
Commit 2ceec0d2 authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

add script for illustrating scripting

parent 09aaf26a
No related branches found
No related tags found
No related merge requests found
from subprocess import Popen, PIPE
cmd = 'clustalw -align -infile={0} -output=FASTA -outfile=alignement.fa'.format('../data/abcd.fasta')
clustal_process = Popen(cmd, shell = True, stdout = PIPE, stderr = PIPE)
stdout, stderr = clustal_process.communicate()
return_code = clustal_process.poll()
if return_code != 0 :
raise RuntimeError("something goes wrong with clustalw :"+stderr)
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment