0

binding_locations(strA, strB)

My specifications

The first parameter represents a strand of DNA. The second parameter is one strand from a recognition sequence. Return a list of all the indices where the recognition sequence appears in the DNA strand. (These are the restriction sites.)

-------------------------------------------------------

For example, if the DNA palindrome appears at the beginning of the DNA strand, then 0 would be one of the items in the returned list. Look from left to right; dont reverse the first parameter and look backwards.

Help appreciated. Trying to figure this out by drawing float charts for hours lol, but still stuck on the same topic.

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by AutoPython
0

so for example:

strA is
'GGTACCCCTAGG'

and basically strB is return C since that where the DNA Palindrome begin

str.find() can be used if someone is wondering

Thanks

0

The source code is made available under the Biopython License, which is extremely liberal and compatible with almost every license in the world.

Crash... I'm not using they're software. Why would they mention that?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.