kalekundert / autosnapgene

MIT License
5 stars 1 forks source link

Bug:Unable to search for a replacement DNA sequence in the DNA file #1

Open jiaweiguan opened 1 year ago

jiaweiguan commented 1 year ago

code:

dna_path = "./1.dna"
target = "tctccg"
dna = snap.parse(dna_path)
seq = dna.get_dna_sequence().upper()
dna.set_dna_sequence(seq.replace(target.upper(), dna_seq))
dna.write("1_new.dna")

Through the above code, I replaced the gene sequences, but when I used the software to “find” DNA sequence again, I couldn't find a match for the replaced gene sequence. The sequence in the file has indeed been replaced, but the "find" function of the software seems to be ineffective for replacing parts.

kalekundert commented 1 year ago

I'm not sure exactly what you mean by the "find function of the software". Can you make a minimal reproducible example that:

jiaweiguan commented 12 months ago

I have resolved this issue, which seems to be related to the version of snapgene