}
-void lowercase_low_scores( char *seq, char *scores, int threshold )
-{
- /* Martin A. Hansen, July 2009 */
-
- /* Given a sequence string and a score string (in FASTQ/Phread range) */
- /* lowercases all residues where the decimal score is below a given threshold. */
-
- int i = 0;
-
- for ( i = 0; i < strlen( seq ); i++ )
- {
- if ( phred2score( scores[ i ] ) < threshold ) {
- seq[ i ] = tolower( seq[ i ] );
- }
- }
-}
-
-
void solexa2phred( char *scores )
{
/* Martin A. Hansen, July 2009 */
for ( i = 0; i < strlen( scores ); i++ )
{
- score = solexa2score( scores[ i ] );
- c = score2phred( score );
+ score = solexa2score( scores[ i ] );
+ c = score2phred( score );
// printf( "scores[i]: %c score: %d char: %c\n", scores[ i ], score, c );
}
+void lowercase_low_scores( char *seq, char *scores, int threshold )
+{
+ /* Martin A. Hansen, July 2009 */
+
+ /* Given a sequence string and a score string (in FASTQ/Phread range) */
+ /* lowercases all residues where the decimal score is below a given threshold. */
+
+ int i = 0;
+
+ for ( i = 0; i < strlen( seq ); i++ )
+ {
+ if ( phred2score( scores[ i ] ) < threshold ) {
+ seq[ i ] = tolower( seq[ i ] );
+ }
+ }
+}
+
+
END_C