Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Sequence information parsing In this exercise, you will create a program to parse sequence name information from a single line of a FASTQ formatted file.

Sequence information parsing
In this exercise, you will create a program to parse sequence name information from a single line of a FASTQ formatted file. Your task is to create a Python script called fastqParse that:
asks for and collects the seqname line of a FASTQ file using input()
parses out each field of the run information from the string and displays each of them on a new line For example, if I enter the FASTQ seqname line:
@EAS139:136:FC706VJ:2:2104:15343:197393 then the program will output:
Instrument = EAS139
Run ID =136
Flow Cell ID = FC706VJ
Flow Cell Lane =2
Tile Number =2104
X-coord =15343
Y-coord =197393
Hints:
The input string is guaranteed to have 7 fields.
The first character of the FASTQ seqname line is @ and each field of the run information is separated by a colon:.
A reasonable solution would be around 16 lines of code excluding comments.
To get full credit on this assignment, your code needs to:
Run properly (execute and produce the correct output)
Contain documentation/comments
Include any assumptions or design decisions you made in writing your code
Include an overview describing what your program does with expected inputs and outputs
fastqParse
#!/usr/bin/env python3
# Name: Ryan Fong
# Group Members: List full names or None
'''
Program docstring goes here.
'''
class FastqString (str):
''' Class docstring goes here.'''
def parse(self):
''' Method docstring goes here.'''
pass
def main():
''' Function docstring goes here.'''
pass
main()

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

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

3rd Edition

0128012757, 978-0128012758

More Books

Students also viewed these Databases questions