Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def mutate(dna, motif):
|
|
27 |
#reverse_motif.index(reverse_comp)+len()]
|
28 |
new_dna = dna[:dna.index(motif)] + dna[dna.find(reverse_comp(motif), dna.index(motif)) + len(reverse_comp(motif)):]
|
29 |
#correct code ^^^
|
30 |
-
|
31 |
else:
|
32 |
print('motif not found in sequence: ',end='')
|
33 |
return dna
|
27 |
#reverse_motif.index(reverse_comp)+len()]
|
28 |
new_dna = dna[:dna.index(motif)] + dna[dna.find(reverse_comp(motif), dna.index(motif)) + len(reverse_comp(motif)):]
|
29 |
#correct code ^^^
|
30 |
+
return new_dna
|
31 |
else:
|
32 |
print('motif not found in sequence: ',end='')
|
33 |
return dna
|