I need to make a function that determines the overlap between 2 sequences, and then return the overlap.
The overlap is a coherent sequence that is in the left end of the first sequence, and in the right end of the second sequence.
my sequences are: s1= "CGATTCCAGGCTCC CCACGGGGTACCCAT AACTTGACAGTAGAT CTC"
s2= "GGCTCCCCACGGGG TACCCATAACTTGAC AGTAGATCTCGTCCA GACCCCTAGC"
my function should be named def getOverlap(left , right)
and should return ‘GGCTCCCCACGGGG TACCCATAACTTGAC AGTAGATCTC’
if s1 is the left sequence and s2 the right one.
The overlap is a coherent sequence that is in the left end of the first sequence, and in the right end of the second sequence.
my sequences are: s1= "CGATTCCAGGCTCC CCACGGGGTACCCAT AACTTGACAGTAGAT CTC"
s2= "GGCTCCCCACGGGG TACCCATAACTTGAC AGTAGATCTCGTCCA GACCCCTAGC"
my function should be named def getOverlap(left , right)
and should return ‘GGCTCCCCACGGGG TACCCATAACTTGAC AGTAGATCTC’
if s1 is the left sequence and s2 the right one.
Comment