[SOLVED] QBIO401-Assignment 1

20.99 $

Category:

Description

5/5 - (2 votes)
  1. Write a Python function that takes as input a FASTA file and returns a sequence string .

 

  1. Write a Python function that takes as input a sequence string and returns a list with 4 entries that are the number of A, C, G, and T in the sequence

 

  1. Write a Python function that takes two inputs: a sequence string and a string of two letters (e.g., “CG” or “CT”). This function returns the number of times the two letters occur consecutively in the sequence ].

 

  1. Explore the NCBI website, go to the following two pages, and download the FASTA files for the human gene PTPN11 and it’s Drosophila orthologue csw.

 

 

For each of the two FASTA files, print the output of function #2 and function #3 with input “CG”. Compare the results and describe your finding

 

  1. [Bonus] Write another Python function that takes as input a sequence string and returns a list with 16 entries that are the outputs of function #3 for all 16 possible two letter strings