Skip to content
Snippets Groups Projects
Commit ac9b55e4 authored by tobias's avatar tobias
Browse files

allow sequence strings to be used in clustalw

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2693 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent d659cd69
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,12 @@ def ClustalW(seq1, seq2=None, clustalw=None, keep_files=False):
seq_list=seq.CreateSequenceList()
seq_list.AddSequence(seq1)
seq_list.AddSequence(seq2)
elif isinstance(seq1, str) and isinstance(seq2, str):
seq1=CreateSequence("seq1", seq1)
seq2=CreateSequence("seq2", seq2)
seq_list=seq.CreateSequenceList()
seq_list.AddSequence(seq1)
seq_list.AddSequence(seq2)
else:
LogError("WARNING: Specify at least two Sequences")
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment