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.

Can you give us a simplified example what strA and strB would look like?

Also, have you checked this:
http://biopython.org/wiki/Main_Page

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

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.