1
answer
0
watching
175
views

splice gene: Takes 2 list representations of genes (each element of the list will contain a single character string representing one nucleotide) which we will call source and destination (in that order) along with two strings representing the start and end anchor strings. Splices the subsequence of source between the anchor strings into destination between the anchor strings. If an anchor occurs more than once in a string, the first shortest sequence should be used. If the anchors do not appear in order in both strings, no changes should be made to the genes.
and Scientists are able to splice genes: taking a nucleotide sequence from one gene and replacing it with a nucleotide sequence from another. In order to do this, scientists need to find anchor sequences that are the same in both genes, and they can then swap everything in between these anchor sequences2. For example, if they wanted to splice the gene codeACATGTGACGT into the gene TCAGTTACTTGA, using the anchor sequence CA to start the splice and AC to end the splice. They would extract CATGTGAC from the first gene, and use it to replace the sequence CAGTTAC from the second gene, resulting in the new gene TCATGTGACTTGA.
I was thinking about use while loop and len (), but I still have something missing.

For unlimited access to Homework Help, a Homework+ subscription is required.

Elin Hessel
Elin HesselLv2
28 Sep 2019

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in

Related textbook solutions

Related questions

Weekly leaderboard

Start filling in the gaps now
Log in