Skip to content
Snippets Groups Projects
Commit a2ee6664 authored by Tobias Schmidt's avatar Tobias Schmidt Committed by Marco Biasini
Browse files

added nopgap flag to clustalw binding

parent 580eedbf
No related branches found
No related tags found
Loading
......@@ -3,7 +3,7 @@ from ost import settings, io, seq, LogError
import os
import subprocess
def ClustalW(seq1, seq2=None, clustalw=None, keep_files=False):
def ClustalW(seq1, seq2=None, clustalw=None, keep_files=False, nopgap=False):
clustalw_path=settings.Locate(('clustalw', 'clustalw2'),
explicit_file_name=clustalw)
......@@ -32,6 +32,8 @@ def ClustalW(seq1, seq2=None, clustalw=None, keep_files=False):
command='%s -infile="%s" -output=fasta -outfile="%s"' % (clustalw_path,
temp_dir.files[0],
out)
if nopgap:
command+=" -nopgap"
ps=subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
ps.stdout.readlines()
aln=io.LoadAlignment(out)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment