SlideShare a Scribd company logo
1 of 2
You will write a Python program that finds all the ORFs in a
genomic sequence.
A genomic sequence has 6 reading frames, corresponding to the
six possible ways of translating the sequence into three-letter
codons. Frame 1 treats each group of three bases as a codon,
starting from the first base. Frame 2 starts at the second base,
and frame 3 starts at the third base. Frames 4, 5 and 6 are
defined in a similar way, but refer to the opposite strand, which
is the reverse complement of the first strand.
Specifications:
Write a Python program called orfs to find all the open reading
frames (ORFs) in the input sequence.
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 = POS = LEN = , where is the frame
number (1-6)
is the genomic position of the start of the ORF (left end is base
1) 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.

More Related Content

More from chandaronald

Assignment 2 Innovation and Communication PresentationListed belo.docx
Assignment 2 Innovation and Communication PresentationListed belo.docxAssignment 2 Innovation and Communication PresentationListed belo.docx
Assignment 2 Innovation and Communication PresentationListed belo.docxchandaronald
 
Assignment 2 Internal Environmental ScanOrganizational Assessment.docx
Assignment 2 Internal Environmental ScanOrganizational Assessment.docxAssignment 2 Internal Environmental ScanOrganizational Assessment.docx
Assignment 2 Internal Environmental ScanOrganizational Assessment.docxchandaronald
 
Assignment 2 International Crime Witness, Part 1Due Week 6 an.docx
Assignment 2 International Crime Witness, Part 1Due Week 6 an.docxAssignment 2 International Crime Witness, Part 1Due Week 6 an.docx
Assignment 2 International Crime Witness, Part 1Due Week 6 an.docxchandaronald
 
Assignment 2 International Crime Witness, Part 1Use the Interne.docx
Assignment 2 International Crime Witness, Part 1Use the Interne.docxAssignment 2 International Crime Witness, Part 1Use the Interne.docx
Assignment 2 International Crime Witness, Part 1Use the Interne.docxchandaronald
 
Assignment 2 Income Support PoliciesIn this assignment, you m.docx
Assignment 2 Income Support PoliciesIn this assignment, you m.docxAssignment 2 Income Support PoliciesIn this assignment, you m.docx
Assignment 2 Income Support PoliciesIn this assignment, you m.docxchandaronald
 
Assignment 2 International Crime Witness, Part 1Due Week 6 and .docx
Assignment 2 International Crime Witness, Part 1Due Week 6 and .docxAssignment 2 International Crime Witness, Part 1Due Week 6 and .docx
Assignment 2 International Crime Witness, Part 1Due Week 6 and .docxchandaronald
 
Assignment 2 Influencing Leaders toward Organizational ChangeIn t.docx
Assignment 2 Influencing Leaders toward Organizational ChangeIn t.docxAssignment 2 Influencing Leaders toward Organizational ChangeIn t.docx
Assignment 2 Influencing Leaders toward Organizational ChangeIn t.docxchandaronald
 
Assignment 2 Income Support PoliciesIn this assignment, you must .docx
Assignment 2 Income Support PoliciesIn this assignment, you must .docxAssignment 2 Income Support PoliciesIn this assignment, you must .docx
Assignment 2 Income Support PoliciesIn this assignment, you must .docxchandaronald
 
Assignment 2 Internet-Based Psychological InterventionsDue Tues.docx
Assignment 2 Internet-Based Psychological InterventionsDue Tues.docxAssignment 2 Internet-Based Psychological InterventionsDue Tues.docx
Assignment 2 Internet-Based Psychological InterventionsDue Tues.docxchandaronald
 
Assignment 2 Field Observation Purpose The purpose of this .docx
Assignment 2 Field Observation Purpose The purpose of this .docxAssignment 2 Field Observation Purpose The purpose of this .docx
Assignment 2 Field Observation Purpose The purpose of this .docxchandaronald
 
Assignment 2 Human Resources and Staffing Crisis at Blumberg’s Nurs.docx
Assignment 2 Human Resources and Staffing Crisis at Blumberg’s Nurs.docxAssignment 2 Human Resources and Staffing Crisis at Blumberg’s Nurs.docx
Assignment 2 Human Resources and Staffing Crisis at Blumberg’s Nurs.docxchandaronald
 
Assignment 2 FederalismThe system of federalism was institute.docx
Assignment 2 FederalismThe system of federalism was institute.docxAssignment 2 FederalismThe system of federalism was institute.docx
Assignment 2 FederalismThe system of federalism was institute.docxchandaronald
 
Assignment 2 Human Resource and Organization PerformanceEffective.docx
Assignment 2 Human Resource and Organization PerformanceEffective.docxAssignment 2 Human Resource and Organization PerformanceEffective.docx
Assignment 2 Human Resource and Organization PerformanceEffective.docxchandaronald
 
Assignment 2 Human Resource and Organization PerformanceEffecti.docx
Assignment 2 Human Resource and Organization PerformanceEffecti.docxAssignment 2 Human Resource and Organization PerformanceEffecti.docx
Assignment 2 Human Resource and Organization PerformanceEffecti.docxchandaronald
 
Assignment 2 Group AffiliationsOne of the objectives of this cour.docx
Assignment 2 Group AffiliationsOne of the objectives of this cour.docxAssignment 2 Group AffiliationsOne of the objectives of this cour.docx
Assignment 2 Group AffiliationsOne of the objectives of this cour.docxchandaronald
 
Assignment 2 Discussion—The Impact of CommunicationAssignment 2 .docx
Assignment 2 Discussion—The Impact of CommunicationAssignment 2 .docxAssignment 2 Discussion—The Impact of CommunicationAssignment 2 .docx
Assignment 2 Discussion—The Impact of CommunicationAssignment 2 .docxchandaronald
 
Assignment 2 DiscussionDuring the first year or two of its existe.docx
Assignment 2 DiscussionDuring the first year or two of its existe.docxAssignment 2 DiscussionDuring the first year or two of its existe.docx
Assignment 2 DiscussionDuring the first year or two of its existe.docxchandaronald
 
Assignment 2 Discussion—The Impact of CommunicationRemember a tim.docx
Assignment 2 Discussion—The Impact of CommunicationRemember a tim.docxAssignment 2 Discussion—The Impact of CommunicationRemember a tim.docx
Assignment 2 Discussion—The Impact of CommunicationRemember a tim.docxchandaronald
 
Assignment 2 Discussion—Cognitive Development in AnimalsWashoe is.docx
Assignment 2 Discussion—Cognitive Development in AnimalsWashoe is.docxAssignment 2 Discussion—Cognitive Development in AnimalsWashoe is.docx
Assignment 2 Discussion—Cognitive Development in AnimalsWashoe is.docxchandaronald
 
Assignment 2 Discussion QuestionReview Argosys IRB Checklist. Ga.docx
Assignment 2 Discussion QuestionReview Argosys IRB Checklist. Ga.docxAssignment 2 Discussion QuestionReview Argosys IRB Checklist. Ga.docx
Assignment 2 Discussion QuestionReview Argosys IRB Checklist. Ga.docxchandaronald
 

More from chandaronald (20)

Assignment 2 Innovation and Communication PresentationListed belo.docx
Assignment 2 Innovation and Communication PresentationListed belo.docxAssignment 2 Innovation and Communication PresentationListed belo.docx
Assignment 2 Innovation and Communication PresentationListed belo.docx
 
Assignment 2 Internal Environmental ScanOrganizational Assessment.docx
Assignment 2 Internal Environmental ScanOrganizational Assessment.docxAssignment 2 Internal Environmental ScanOrganizational Assessment.docx
Assignment 2 Internal Environmental ScanOrganizational Assessment.docx
 
Assignment 2 International Crime Witness, Part 1Due Week 6 an.docx
Assignment 2 International Crime Witness, Part 1Due Week 6 an.docxAssignment 2 International Crime Witness, Part 1Due Week 6 an.docx
Assignment 2 International Crime Witness, Part 1Due Week 6 an.docx
 
Assignment 2 International Crime Witness, Part 1Use the Interne.docx
Assignment 2 International Crime Witness, Part 1Use the Interne.docxAssignment 2 International Crime Witness, Part 1Use the Interne.docx
Assignment 2 International Crime Witness, Part 1Use the Interne.docx
 
Assignment 2 Income Support PoliciesIn this assignment, you m.docx
Assignment 2 Income Support PoliciesIn this assignment, you m.docxAssignment 2 Income Support PoliciesIn this assignment, you m.docx
Assignment 2 Income Support PoliciesIn this assignment, you m.docx
 
Assignment 2 International Crime Witness, Part 1Due Week 6 and .docx
Assignment 2 International Crime Witness, Part 1Due Week 6 and .docxAssignment 2 International Crime Witness, Part 1Due Week 6 and .docx
Assignment 2 International Crime Witness, Part 1Due Week 6 and .docx
 
Assignment 2 Influencing Leaders toward Organizational ChangeIn t.docx
Assignment 2 Influencing Leaders toward Organizational ChangeIn t.docxAssignment 2 Influencing Leaders toward Organizational ChangeIn t.docx
Assignment 2 Influencing Leaders toward Organizational ChangeIn t.docx
 
Assignment 2 Income Support PoliciesIn this assignment, you must .docx
Assignment 2 Income Support PoliciesIn this assignment, you must .docxAssignment 2 Income Support PoliciesIn this assignment, you must .docx
Assignment 2 Income Support PoliciesIn this assignment, you must .docx
 
Assignment 2 Internet-Based Psychological InterventionsDue Tues.docx
Assignment 2 Internet-Based Psychological InterventionsDue Tues.docxAssignment 2 Internet-Based Psychological InterventionsDue Tues.docx
Assignment 2 Internet-Based Psychological InterventionsDue Tues.docx
 
Assignment 2 Field Observation Purpose The purpose of this .docx
Assignment 2 Field Observation Purpose The purpose of this .docxAssignment 2 Field Observation Purpose The purpose of this .docx
Assignment 2 Field Observation Purpose The purpose of this .docx
 
Assignment 2 Human Resources and Staffing Crisis at Blumberg’s Nurs.docx
Assignment 2 Human Resources and Staffing Crisis at Blumberg’s Nurs.docxAssignment 2 Human Resources and Staffing Crisis at Blumberg’s Nurs.docx
Assignment 2 Human Resources and Staffing Crisis at Blumberg’s Nurs.docx
 
Assignment 2 FederalismThe system of federalism was institute.docx
Assignment 2 FederalismThe system of federalism was institute.docxAssignment 2 FederalismThe system of federalism was institute.docx
Assignment 2 FederalismThe system of federalism was institute.docx
 
Assignment 2 Human Resource and Organization PerformanceEffective.docx
Assignment 2 Human Resource and Organization PerformanceEffective.docxAssignment 2 Human Resource and Organization PerformanceEffective.docx
Assignment 2 Human Resource and Organization PerformanceEffective.docx
 
Assignment 2 Human Resource and Organization PerformanceEffecti.docx
Assignment 2 Human Resource and Organization PerformanceEffecti.docxAssignment 2 Human Resource and Organization PerformanceEffecti.docx
Assignment 2 Human Resource and Organization PerformanceEffecti.docx
 
Assignment 2 Group AffiliationsOne of the objectives of this cour.docx
Assignment 2 Group AffiliationsOne of the objectives of this cour.docxAssignment 2 Group AffiliationsOne of the objectives of this cour.docx
Assignment 2 Group AffiliationsOne of the objectives of this cour.docx
 
Assignment 2 Discussion—The Impact of CommunicationAssignment 2 .docx
Assignment 2 Discussion—The Impact of CommunicationAssignment 2 .docxAssignment 2 Discussion—The Impact of CommunicationAssignment 2 .docx
Assignment 2 Discussion—The Impact of CommunicationAssignment 2 .docx
 
Assignment 2 DiscussionDuring the first year or two of its existe.docx
Assignment 2 DiscussionDuring the first year or two of its existe.docxAssignment 2 DiscussionDuring the first year or two of its existe.docx
Assignment 2 DiscussionDuring the first year or two of its existe.docx
 
Assignment 2 Discussion—The Impact of CommunicationRemember a tim.docx
Assignment 2 Discussion—The Impact of CommunicationRemember a tim.docxAssignment 2 Discussion—The Impact of CommunicationRemember a tim.docx
Assignment 2 Discussion—The Impact of CommunicationRemember a tim.docx
 
Assignment 2 Discussion—Cognitive Development in AnimalsWashoe is.docx
Assignment 2 Discussion—Cognitive Development in AnimalsWashoe is.docxAssignment 2 Discussion—Cognitive Development in AnimalsWashoe is.docx
Assignment 2 Discussion—Cognitive Development in AnimalsWashoe is.docx
 
Assignment 2 Discussion QuestionReview Argosys IRB Checklist. Ga.docx
Assignment 2 Discussion QuestionReview Argosys IRB Checklist. Ga.docxAssignment 2 Discussion QuestionReview Argosys IRB Checklist. Ga.docx
Assignment 2 Discussion QuestionReview Argosys IRB Checklist. Ga.docx
 

Recently uploaded

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 

Recently uploaded (20)

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 

You will write a Python program that finds all the ORFs in a genomic

  • 1. You will write a Python program that finds all the ORFs in a genomic sequence. A genomic sequence has 6 reading frames, corresponding to the six possible ways of translating the sequence into three-letter codons. Frame 1 treats each group of three bases as a codon, starting from the first base. Frame 2 starts at the second base, and frame 3 starts at the third base. Frames 4, 5 and 6 are defined in a similar way, but refer to the opposite strand, which is the reverse complement of the first strand. Specifications: Write a Python program called orfs to find all the open reading frames (ORFs) in the input sequence. 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 = POS = LEN = , where is the frame
  • 2. number (1-6) is the genomic position of the start of the ORF (left end is base 1) 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.