]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed scores in bwa_seq
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 13 Oct 2010 12:11:28 +0000 (12:11 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 13 Oct 2010 12:11:28 +0000 (12:11 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1130 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/bwa_seq

index ff1818516c69cf58f7833a4bfb41b6555d7ad8aa..ed46c201524fa58a0832ecf7c763780b1c69e602 100755 (executable)
@@ -71,7 +71,9 @@ $fh_out = Maasha::Filesys::file_write_open( $tmp_fq );
 
 while ( $record = Maasha::Biopieces::get_record( $in ) ) 
 {
-    if ( $entry = Maasha::Fastq::biopiece2fastq( $record ) ) {
+    if ( $entry = Maasha::Fastq::biopiece2fastq( $record ) )
+    {
+        $entry->[ 2 ] =~ s/(.)/chr( ( ord( $1 ) - 64 ) + 33 )/ge; # convert scores from phred-64 to phred-33
         Maasha::Fastq::put_entry( $entry, $fh_out );
     }