Write a perl program that finds open reading frames

Apr 23rd, 2015
DreamIt
Category:
Programming
Price: $70 USD

Question description

INPUT: The program will take in as input a file, which will contain any number of DNA sequences in the FASTA format:

- A line beginning with a ">" is the header line for the next sequence - All lines after the header contain sequence data. - There will be any number of sequences per file. - Sequences may be split over many lines. - Sequence data may be upper or lower case. - Sequence data may contain white space, which should be ignored. Ask the user for the minimum ORF to search for. The default is 50, which means your program should print out all ORFs with at least 50 bases.

OUTPUT: Print your output in FASTA format, with one header line for each ORF, followed by the DNA in the ORF. The header should be the same as the header in the input file, followed by a bar "|" followed by FRAME = <N> POS = <P> LEN = <L>, where <N> is the frame number (1-6) <P> is the genomic position of the start of the ORF (left end is base 1) <L> is the length of the ORF (in bases) If N = 4, 5 or 6, then P should be a negative number that indicates the position of the start of the ORF from the right end of the sequence. The DNA in the ORF should be printed out with a space between each codon, and no more than 15 codons per line.

For example: >gi|1786181| Escherichia coli K-12 | FRAME = 1 POS = 5215 LEN = 138 ATG ATA AAA GGA GTA ACC TGT GAA AAA GAT GCA ATC TAT CGT ACT CGC ACT TTC CCT GGT TCT GGT CGC TCC CAT GGC AGC ACA GGC TGC GGA AAT TAC GTT AGT CCC GTC AGT AAA ATT ACA GAT AGG CGA TCG TGA


Tutor Answer

(Top Tutor) Daniel C.
(997)
School: New York University
PREMIUM TUTOR

Studypool has helped 1,244,100 students

5 Reviews


Summary
Quality
Communication
On Time
Value
ashleyisgod
Nov 25th, 2016
" Top quality work from this guy! I'll be back! "
Molly_Moon
Nov 3rd, 2016
" AMAZING as always! "
Hemapathy
Oct 11th, 2016
" all I can say is wow very fast work, great work thanks "
BlueOcean
Sep 28th, 2016
" Awesome! Exactly what I wanted. "
kevin12622
Sep 19th, 2016
" Goes above and beyond expectations ! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1823 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors