Question

Use the list of sequence ["ATATCCG", "TCCG", "ATGTACTG", "ATGGCTG", "ATCA"] as an example, write a program...

Use the list of sequence ["ATATCCG", "TCCG", "ATGTACTG", "ATGGCTG", "ATCA"] as an example, write a program that finds the sequence with the highest GC content (the percentage of G and C nucleotides) among a list of sequences. The program prints the sequence and its GC content. Using python please!

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Here are the steps that will help in wtiing the program:

  • Store the list of sequences as an array.
  • Start a loop where each sequece will be considered for analysis
  • Consider each array element as a string
    • Calculate the total number of characters present or the string length
    • Using a loop check for occurences of G and C.
    • Count the occurence of G and C
    • Calculate the GC percentage
    • Store the result in a fixed array.
  • After all sequences are analysed, break the loop
  • Consider the resulting array
  • Print the highest value and the array element from the sequence containing array with same index as the resulting array.
Add a comment
Know the answer?
Add Answer to:
Use the list of sequence ["ATATCCG", "TCCG", "ATGTACTG", "ATGGCTG", "ATCA"] as an example, write a program...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • python Write a program that calculates the AT and GC content (i.e. the percentage of G...

    python Write a program that calculates the AT and GC content (i.e. the percentage of G and C, and the percentage of A and T) in a given sequence. You can make up your own dummy sequence and store it in text file (use something like Notepad, not word!). Your program should read in the sequence from the file and calculate the GC and AT content. Print out the results to a file called DNA_Statistics.txt, the result should look something...

  • Using Perl Program: Write a program that will generate a DNA sequence (at random) of size...

    Using Perl Program: Write a program that will generate a DNA sequence (at random) of size 1000 bp. The sequence should contain all four nucleotides (A, G, C and T).

  • Please Use Python Check the example codes of prompting the user for a list of numbers...

    Please Use Python Check the example codes of prompting the user for a list of numbers and prints out the maximum and minimum of the numbers at the end when the user enters “done”. Write the program to store the numbers the user enters in a list and use proper Python build-in functions or loops to compute the maximum and minimum numbers after the loop completes. Example output: Enter a number: 6 Enter a number: 2 Enter a number: 9...

  • write a program which prints a sequence of integers that are multiples of 10 starting at...

    write a program which prints a sequence of integers that are multiples of 10 starting at 0 and ending at 100 in python

  • Write a program in Python that finds the index of an item in a list. For...

    Write a program in Python that finds the index of an item in a list. For example: You create a of list of colors You find the index of the color "red" Print the list and the index of "red" Your program should work for every item in your list, and it must have at least 3 items in the list. It must also work if you search for an item and it does not exist in the list. You...

  • [Using Python] Use the grade scale in the syllabus for this class, write a program that...

    [Using Python] Use the grade scale in the syllabus for this class, write a program that inputs a score, and prints the grade for that score. For example, if I input 90.0, your program should print A. Grading Scale is: 100% - 90% A 89% - 80% B 79% - 70% C 69% - 60% D 59% - 0% E

  • Write a C program that acquires a sequence of characters from the keyboard. The sequence ends...

    Write a C program that acquires a sequence of characters from the keyboard. The sequence ends once the user enters the newline character, i.e., hits the ENTER key. The program modifies the entered sequence by: • First replacing every occurrence of the sequence "ch” with the letter "K" • Then replacing all occurrences of the sequence "oo" with the letter "u" . And then replacing all occurrences of the sequence "ee" with the letter "j" and prints the modified version...

  • Python program - Write a Python program, in a file called sortList.py, which, given a list...

    Python program - Write a Python program, in a file called sortList.py, which, given a list of names, sorts the names into alphabetical order. Use a one dimensional array to hold the list of names. To do the sorting use a simple sorting algorithm that repeatedly takes an element from the unsorted list and puts it in alphabetical order within the same list. Initially the entire list is unsorted. As each element is placed in alphabetical order, the elements in...

  • USE IDLE PLATFORM FOR PYTHON PLEASE Write a Python program that creates a list that contains...

    USE IDLE PLATFORM FOR PYTHON PLEASE Write a Python program that creates a list that contains players of your favorite teams. The program then should ask the user to enter the name of a player. If the player is in your list, display a message indicating that the player is in the team. Otherwise, the program should display a message stating that the player isn't on the team.

  • . A run is a sequence of adjacent repeated values. Write a program that generates a...

    . A run is a sequence of adjacent repeated values. Write a program that generates a sequence of 20 random die tosses and then prints the die values, marking the runs by including them in parentheses, like this: 1 2 (5 5) 3 1 2 4 3 (2 2 2 2) 3 6 (5 5) 6 3 1 Use the following pseudocode: Set a boolean variable inRun to false. For each valid index i in the list if inRun If...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT