Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python code a complete splice_gene functions that can read gene from both forward and backward please. Introduction In this assignment, we will be working with

image text in transcribed
image text in transcribed
Python code a complete splice_gene functions that can read gene from both forward and backward please.
Introduction In this assignment, we will be working with strings and lists, combining iteration and selection and dealing with mutability. The goal of this assignment is to ensure that you're comfortale combining all of the elements we have been learning in class, and using mmltiple tools together in a single function. Once again your mark will be partially based on building working code, but more than half of your mark will come from documentation and design Important Notes For this assignment, you can use any material covered in class up to and including file i/o. That means you can use loops and selection, as well as any built-in string or list methods that do not roquire importing Remember to follo the instructions carefully, and that nowbere in your code should you ue import or print statements. One thing to keep in mind in this assignment is that genes can be very long. So it will be important that your code be efficien You don't want to loop over a segaence more times than necessary, and you don't want to create copies of data if it can be avoided. DNA Sequencing Now that we have a good understanding of what a gene looks like, we will be working on ways in which genes can be combined and manipalated. Genes are composed of a sequence of nucleotides: adenine ( guanine (G), cytosine (C) and thymine (T). And once again, we will represent each of these genes by the first letter of their name Genes can be paired together by allowing the nucleotides from one gene to pair-bond with the nucleotides from another. Interestingly, guanine will pair with cytosine, and adenine will pair with thymine, but other combinations will not pair. So if we have a gene with the macleotide sequence TCAG, it would pair with either AGTC or CTGA (genes can pair in either direction) It's also possible for a gene to partially pair with itself, ia a process we will call zipping. This happens when the nnceotides at cither end of a gene form a pair bond, which may in turn allow the next nucleotides in fro those genes to bond. This prooess contins until a pair of nucleotides do not form a hond. For example, the gene AGTCTCGCT could form a zip with the first adenine pairing with the last thymine, then the guanine at index 1 bonding with the cytosine at index -2. The next pair inwards would be a thymine and a guanine, which don't pair. So this gene would stop there and only form a zip of length 2 Scientists are able to splice genes: taking a maclootide soquence from one gene and replacing it with a uucleotide sequence from anotber. In order to do this, scientists eed to ind 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 splioe. They woukl extract CATCTGAC from the first gene, and use it to replace the sequence CAGTTAC from the second gene, resulting in the new gene TCATCTGACTTGA %r this assignment, we will ipare the AGT 'tating coda, and j u,on the rmf of the grne Once again, we're straying from how things actually work in real biology in order to make the problem better fit our noeds This isn't quite how splicing works in the real wor, but for the pirpoos of tho anignment, wen pretend

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

More Books

Students also viewed these Databases questions

Question

Explain in detail how the Mughal Empire was established in India

Answered: 1 week ago

Question

Problem: Evaluate the integral: I - -[ze dx

Answered: 1 week ago

Question

1. Who should participate and how will participants be recruited?

Answered: 1 week ago

Question

3. How would this philosophy fit in your organization?

Answered: 1 week ago