From Genome Analysis Wiki
Jump to navigationJump to search
31 bytes added
, 17:19, 12 March 2010
Line 76: |
Line 76: |
| | | |
| | | |
− | == Use of the FastQFile class === | + | == Use of the FastQFile class == |
| Generally this class is used to read a fastq file and perform operations on the sequences. | | 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. | | Here is an example of how this would be done. |
| | | |
− | bool <yourMethod>() | + | <your return type> <yourMethod>() |
| { | | { |
| String filename = <your filename>; | | String filename = <your filename>; |
Line 90: |
Line 90: |
| // Report the error and exit (handled by error). | | // Report the error and exit (handled by error). |
| error("Failed to open file: %s", filename.c_str()); | | error("Failed to open file: %s", filename.c_str()); |
− | return (false); | + | return (<your return info to indicate failure>); |
| } | | } |
| // Keep reading the file until there are no more fastq sequences to process. | | // Keep reading the file until there are no more fastq sequences to process. |
Line 114: |
Line 114: |
| // Close the input file. | | // Close the input file. |
| closeFile(); | | closeFile(); |
− | return(true/false); // It is up to you to determine what is considered success/failure. | + | return(<your return info>); // It is up to you to determine your return. |
| } | | } |
| | | |