1. Engineering
  2. Computer Science
  3. der ducleotidecounterseg given dna sequence in string object this...

Question: der ducleotidecounterseg given dna sequence in string object this...

Question details

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.cententIn 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

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution