Question: 12]. def process-file-dict(file-name): # Given a file name in string object, you need to open this file and save sequence # names as keys in

 12]. def process-file-dict(file-name): # Given a file name in string object,
you need to open this file and save sequence # names as

12]. def process-file-dict(file-name): # Given a file name in string object, you need to open this file and save sequence # names as keys in a dictionary, and sequences as the corresponding values. # Then, your function will return a dictionary # The returned dictionary is named as seq-dict seq_dict 0 return seq_dict In your main part of your script, you need to (1) Call the function proces 'Assignment s_file_ dict () by providing the required argument -the fasta file name as the unnamed string object and obtain a named dictionary that contains both sequence 02.fasta' name and sequences. Now, you need to navigate each key of the dictionary (i.e, sequence name) and retrieve the responding value that is the sequence. Then, using the sequence to call your function nucleotide counter (to 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 fasta file ('Assignment02.fasta') 1. Result for calling the function named process file_dict () Seq Name- [Seql]: sequence (GCAAGG,..CAGACA) # You need to print out the complete sequence, not A count (35] T count [151 G count [33) C count 167] 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() Seq Name- [Seg21: sequence (TTAACC CACCCC) # You need to print out the complete sequence, not

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!