Skip to content
Snippets Groups Projects
Commit 6f99120e authored by Andrew Waterhouse's avatar Andrew Waterhouse
Browse files

convert ? to X before running clustalw

parent 6447f1b7
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,13 @@ def ClustalW(seq1, seq2=None, clustalw=None, keep_files=False, nopgap=False, ...@@ -27,6 +27,13 @@ def ClustalW(seq1, seq2=None, clustalw=None, keep_files=False, nopgap=False,
else: else:
LogError("WARNING: Specify either two SequenceHandles or one SequenceList") LogError("WARNING: Specify either two SequenceHandles or one SequenceList")
return return
new_list = seq.CreateSequenceList()
for s in seq_list:
ss = seq.CreateSequence( s.GetName(), s.GetString().replace('?','X') )
new_list.AddSequence(ss)
seq_list = new_list
temp_dir=utils.TempDirWithFiles((seq_list,)) temp_dir=utils.TempDirWithFiles((seq_list,))
out=os.path.join(temp_dir.dirname, 'out.fasta') out=os.path.join(temp_dir.dirname, 'out.fasta')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment