Skip to content

Commit

Permalink
catch when no mutation is defined using fasta
Browse files Browse the repository at this point in the history
  • Loading branch information
MKampfrath committed Mar 4, 2024
1 parent bd3f3d3 commit bbccdee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mutation_explorer_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2407,6 +2407,9 @@ def add_mutations_from_sequence( mutations, target, chain, idy, parent, tag):
pdb_seq = pdb2seq(parent, tag)
write_fasta(f1 ,target ,tag, h1)
write_fasta(f2, pdb_seq[chain][0], tag, h2)
if target == pdb_seq[chain][0]:
print('target and parent is the same, no mutation')
return
cmd = "python3 " + app.config['SCRIPTS_PATH'] + "seq_align.py " + f1 + ' ' + f2 + ' ' + f3 + ' clw'
print(cmd)
p = subprocess.check_output( cmd.split())
Expand Down

0 comments on commit bbccdee

Please sign in to comment.