Open main menu

Genome Analysis Wiki β


LibStatGen: FASTQ

31 bytes added, 17:19, 12 March 2010
no edit summary
== Use of the FastQFile class ===
Generally this class is used to read a fastq file and perform operations on the sequences.
Here is an example of how this would be done.
bool <your return type> <yourMethod>()
String filename = <your filename>;
// Report the error and exit (handled by error).
error("Failed to open file: %s", filename.c_str());
return (false<your return info to indicate failure>);
// Keep reading the file until there are no more fastq sequences to process.
// Close the input file.
return(true/false<your return info>); // It is up to you to determine what is considered success/failureyour return.