Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

13]. # Given two DNA sequences. Now, you compare their nucleotide counts. The nucleotide # Count results will need to save into a dictionary. Therefore,

image text in transcribed
13]. # Given two DNA sequences. Now, you compare their nucleotide counts. The nucleotide # Count results will need to save into a dictionary. Therefore, you will generate two # dictionaries (d1 for seq1 and d2 for seq2). def compare (seq1, seq2): return d1, d2 In the main part of your python script, you need to call this function once by using two named string objects. Of course, ou need to create these two string objects by using assignment (). You also need to name two returned dictionaries Then, you need to use one for loop to navigate both dictionaries in the same time and print out the result, as following: 3. Result for compare (0 Seql is (ATTGCCCC) seq2 is (ATTCGGGG) A count: Seqi [1] vs seq2 [1] T count: Seql [2] vs Seq2 (2] G count: SeqI [1] vs seq2 [3] c count: segl [4] vs seq2 [1] # The underlined parts are changeable # Other parts must be the same as described [Hint: you can use both dictionaries for X in [ 'A, , 'T' , ,G' , ' C , ] and then use the same key (say 'A') to retrieve values from

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

Advanced Database Systems For Integration Of Media And User Environments 98

Authors: Yahiko Kambayashi, Akifumi Makinouchi, Shunsuke Uemura, Katsumi Tanaka, Yoshifumi Masunaga

1st Edition

9810234368, 978-9810234362

More Books

Students also viewed these Databases questions