Question: I need a c_vs_g function that takes a dna string as an input and returns a list of integers. It should start with a score

I need a c_vs_g function that takes a dna string as an input and returns a list of integers. It should start with a score of 0, and overtime there is 'C', it should add +1. If the next letter is A or T, the number should not change and remain the same. If the next is G then 1 should be subtracted. EXAMPLE - ACTGA should return [0, 1, 1, 0, 0]. The function should be complete with all the docstrings. It should also be able to read a FASTA (.fna) file and return its length and c_vs_g score I need a c_vs_g function that takes a dna string as an

Assignment: write function c_vs_g that takes an input dna string and returns a list of integer scores, one int for each position along the string. Here is an example function call to c_vs_g, and the list it should return >>> C_vs_g('ACTGACTCC') [0, 1, 1, 0, 0, 1, 1, 2, 3] Notice this function returns a list of integer numbers. Once your function is finished and working properly (returning the correct list of ints), get your script ready to read a genome file and write an output file for that genome: format for input_file.fna >Accession Organism Description ACTGACTCC format for output_file.txt 0 1 1 0 0 1 1 2 3

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!