Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!