Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer parts 4-7. I attempted to answer parts 1-3, which set up 4-7! Thank you! *Part 1-Retrofitting functions from orf.py e copy and paste

Please answer parts 4-7. I attempted to answer parts 1-3, which set up 4-7! Thank you!
image text in transcribed
image text in transcribed
image text in transcribed
*Part 1-Retrofitting functions from orf.py e copy and paste restofoRF (DNA) into this program file def restOfORF (DNA) "Takes a sequence starting with an ATG and finds first stop codon. Returns ORF. If no in-frame stop codon, return whole sequence for i in range(,len (DNA),3): if DNA(1: (1+3)) in stoplist: return seq return DNA # Modify oneFrane (DNA) according to directions. # def oeFrame (DNA) : "Begining at the start of DNA, searches that one frane for all ORFs. Returns their seqs as list. sfor i in range(8, len(DNA),3): seq = restOfORF (DNA[i:)) return seql def oneFranev2 (DNA): seq [] while i maxLn: maxSeqsorf maxLnalen(orf) e return(maxSeq) def longestORFV2 (DNA) maxLn-8 maxSega"" for orf in oneFramevV2 (ONA)+oneFranev2(ONA[1:)+oneFramev2 (ONA[2:]): if len(orf)maxin: maxSequorf maxLn.len(orf) return(maxSeq) " place modified version of longestoRF (DNA) here *Part 1-Retrofitting functions from orf.py e copy and paste restofoRF (DNA) into this program file def restOfORF (DNA) "Takes a sequence starting with an ATG and finds first stop codon. Returns ORF. If no in-frame stop codon, return whole sequence for i in range(,len (DNA),3): if DNA(1: (1+3)) in stoplist: return seq return DNA # Modify oneFrane (DNA) according to directions. # def oeFrame (DNA) : "Begining at the start of DNA, searches that one frane for all ORFs. Returns their seqs as list. sfor i in range(8, len(DNA),3): seq = restOfORF (DNA[i:)) return seql def oneFranev2 (DNA): seq [] while i maxLn: maxSeqsorf maxLnalen(orf) e return(maxSeq) def longestORFV2 (DNA) maxLn-8 maxSega"" for orf in oneFramevV2 (ONA)+oneFranev2(ONA[1:)+oneFramev2 (ONA[2:]): if len(orf)maxin: maxSequorf maxLn.len(orf) return(maxSeq) " place modified version of longestoRF (DNA) here

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

1. How might volunteering help the employer and the employee?

Answered: 1 week ago