Answered step by step
Verified Expert Solution
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:
@EAS::FCVJ:::: then the program will output:
Instrument EAS
Run ID
Flow Cell ID FCVJ
Flow Cell Lane
Tile Number
Xcoord
Ycoord
Hints:
The input string is guaranteed to have 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 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 documentationcomments
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
#usrbinenv python
# Name: Ryan Fong
# Group Members: List full names or None
Program docstring goes here.
class FastqString str:
Class docstring goes here.
def parseself:
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started