I want to write python program to cut a DNA sequence at an EcoRI restriction site and print the two fragments after cutting Seq =
AAAAAAAAAAATTTTTTTTTTTGAATTCCCCCCCCCCCGGGGGGGGGGG
Restriction site = GAATTC
I want to cut the sequence at GA/ATTC
I tried split method in python but It does not cut at GA/ATTC.
Please help
import Bio
from Bio.Seq import Seq
my_seq = Seq(&quot;aaaaaaaaaaatttttttttttgaattccccccccccggggggggggg&quot;)
from Bio.Restriction import *
print(EcoRI.search(my_seq))
print(EcoRI.catalyse(my_seq))


Actully the EcoRI cuts the DNA after G in restriction site GAATTC.