Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def mutate(dna, motif):
|
|
21 |
reverse_motif=''
|
22 |
#dna[reverse_comp(motif)]
|
23 |
new_dna=''
|
24 |
-
if reverse_motif in
|
25 |
#My code
|
26 |
#new_dna=dna[:dna.index(motif)]+dna[dna.index(motif)+len(motif):dna.index(reverse_comp(motif))]+dna[dna.index(reverse_comp(motif))+len(reverse_comp(motif)):]
|
27 |
#reverse_motif.index(reverse_comp)+len()]
|
|
|
21 |
reverse_motif=''
|
22 |
#dna[reverse_comp(motif)]
|
23 |
new_dna=''
|
24 |
+
if reverse_motif in dna:
|
25 |
#My code
|
26 |
#new_dna=dna[:dna.index(motif)]+dna[dna.index(motif)+len(motif):dna.index(reverse_comp(motif))]+dna[dna.index(reverse_comp(motif))+len(reverse_comp(motif)):]
|
27 |
#reverse_motif.index(reverse_comp)+len()]
|