You will write functions that handle a strand of DNA written as a string. They find the partner strand, the GC content, the hydrogen bonds and a rough melting temperature.
The idea. A pairs with T and G pairs with C. The partner strand runs the other way, so we reverse it. A G-C pair has 3 hydrogen bonds and an A-T pair has 2. For a very short stretch, a rule of thumb gives the melting temperature in degrees C as .
Your tasks.
reverse_complement(seq) so that it returns the partner strand, read from 5′ to 3′.gc_percent(seq).hydrogen_bonds(seq) for the duplex that the strand makes with its partner.melting_temperature(seq) by the rule above.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…