QuestionRun the cell below to create 20 fasta files with randomly generated… Run the cell below to create 20 fasta files with randomly generated DNA sequences. The FASTA files will be used in exercise 1.”’Run this cell please”’import randomdef create_gene(n): ”’Creates random DNA sequence of length n. Arguments: n: length of DNA sequence Result: returns DNA sequence ”’ return ”.join([random.choice(‘ATGC’) for _ in range(n)])?def write_fasta(header,seq,fileout): ”’Writes a FASTA file. Arguments: header: FASTA header seq: sequence Result: writes fasta file ”’ with open(fileout,’w’) as outfile: #this is a con manager that opens and closes the file outfile.write(‘{}n’.format(header)) outfile.write(‘{}n’.format(seq))?#create FASTA filesamount_of_files = 20for num in range(amount_of_files): header = ‘{} {}’.format(‘>gene’,num+1) filename = ‘{}_{}.fasta’.format(‘sequence’,num+1) random_gene = create_gene(random.randint(50,100)) write_fasta(header,random_gene,filename) Exercise 1Using the files just created create a function that counts the number of codons in each sequence from the FASTA files. Which fasta file has the sequence with the most occurances of ATG?Exercise 2From the FASTA file that you downloaded in exercise 3 from Homework 4. Count the number of hypothetical proteins, how many are there? Find the hypothetical protein with the greatest molecular weight. What is the accession number of this protein?Computer ScienceEngineering & TechnologyPython Programming

Order your essay today and save 20% with the discount code ESSAYHELP