Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, I have to make a working score_GC script that works on python.Mainly a script that can calculate final C vs G score in a

Hello, I have to make a working score_GC script that works on python.Mainly a script that can calculate final C vs G score in a dna string. It should read a fasta file, passes DNA to the c_vs_g function, and stores a list of integersimage text in transcribed

Scoring changes in G versus c content along the length of dna string. First, notice python's indexing along this DNA string. We index starting from zero. These index values are automatically assigned when you save the string to memory. dna = " A T G A T index 0 1 2 3 4 5 6 7 8 Following along that same DNA string, we can score the c versus G content by: starting with a score of zero adding 1 each time we encounter a 'C' subtracting 1 each time we encounter a 'G' (and continue without changing the previous score if you encounter an 'T'.) 'A' or dna = " A G A T C" index 0 1 2 4 5 6 7 nuc_score 0 +1 0 -1 0 +1 0 +1 +1 cumu score 0 1 1 0 0 1 1 2 3 In the table above, cumu_score is the cumulative score since the beginning of the string. Above that I have a nuc_score to show what we add or subtract from the cumulative score at each position. Above that I have the index positions and dna string. The score at index position i=5 is 1. The score increases to 3 by the time we reach the end of the string. * Stop and think: if we have a very long and completely random DNA sequence (where every nucleotide occurs with an equal frequency), what is the predicted final score at the end of the string

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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

Explain why goodness-of-fit tests are always right-tailed tests.

Answered: 1 week ago

Question

Developing and delivering learning that is integrated with the job.

Answered: 1 week ago

Question

Use of assessments to determine trainees learning styles.

Answered: 1 week ago