Answered step by step
Verified Expert Solution
Question
1 Approved Answer
der Ducleotide.counter(seg): # Given DNA sequence in string object, this function will return a dictionary that have the # 4 nucleotides (A, T, G, C)
der Ducleotide.counter(seg): # Given DNA sequence in string object, this function will return a dictionary that have the # 4 nucleotides (A, T, G, C) as the key and relevant counts as the values. This function will # also need to retune the GC content, which is defined as (S.counttg.count)/lenSeg) # declare an empty dictionary return pt dict, gc.centent In your main part of your script, you need to (1) Call the function process fildist() by providing the required argument - the fasta file name 'Assignment02.fasta' as the unnamed string object and obtain a named dictionary that contains both sequence name and sequences. Now, you need to navigate each key of the dictionary (i.e., sequence name) and retrieve the corresponding value that is the sequence. Then, using the sequence to call your function get another dictionary containing nucleotides and their counts, as well as a float object for GC content. Then, you need to print the result for all the sequences in the fast file ('Assignment02.fasta'): ) to 1. Result for calling the function named RESSesaatabe. tt) SRA Name= [ Seal ] : Seguence (GGAAGGA CAGACA) # You need to print out the complete seguence, not A count [35] T count 15] G count 33] c count [67 GC content [66.67%] # The underlined parts are changeable # Other parts must be the same as described # You do need to use present float number into % by *. format() SRA Name= [Sea2] : Sequence (TTAACC CACCCC) # You need to print out the complete sequence, not A count [30] T count [20] G count [30] C count [201 GC content [50%] # The underlined parts are changeable # Other parts must be the same as described # You do need to use present float number into % by
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started