]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/remove_indels
refactoring of assemble_pairs
[biopieces.git] / bp_bin / remove_indels
index 3156b44d60c29fa7418033c31868c1aec0546282..9a1ad033a0fbe508f4f12891ba06885179040814 100755 (executable)
@@ -43,7 +43,8 @@ $out = Maasha::Biopieces::write_stream( $options->{ "stream_out" } );
 
 while ( $record = Maasha::Biopieces::get_record( $in ) ) 
 {
-    $record->{ 'SEQ' } =~ tr/-~.//d if $record->{ "SEQ" };
+    $record->{ 'SEQ' }     =~ tr/-~.//d if $record->{ "SEQ" };
+    $record->{ 'SEQ_LEN' } = length $record->{ "SEQ" };
 
     Maasha::Biopieces::put_record( $record, $out );
 }