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
solved : QuestionRun the cell below to create 20 fasta files with ran
How it works
- Paste your instructions in the instructions box. You can also attach an instructions file
- Select the writer category, deadline, education level and review the instructionsÂ
- Make a payment for the order to be assigned to a writer
- Â Download the paper after the writer uploads itÂ
Will the writer plagiarize my essay?
You will get a plagiarism-free paper and you can get an originality report upon request.
Is this service safe?
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
LET THE PROFESSIONALS WRITE YOUR PAPER!