kipfriend commited on
Commit
e517d25
1 Parent(s): d54db96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 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()]
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()]