$in = Maasha::Biopieces::read_stream( $options->{ "stream_in" } );
$out = Maasha::Biopieces::write_stream( $options->{ "stream_out" } );
$in = Maasha::Biopieces::read_stream( $options->{ "stream_in" } );
$out = Maasha::Biopieces::write_stream( $options->{ "stream_out" } );
-while ( $record = Maasha::Biopieces::get_record( $in ) )
-{
- if ( $record->{ "SEQ" } )
- {
- $record->{ "SEQ_LEN" } = length $record->{ "SEQ" };
- $total += $record->{ "SEQ_LEN" };
- }
-
- Maasha::Biopieces::put_record( $record, $out ) if not $options->{ "no_stream" };
+while ( $record = Maasha::Biopieces::get_record( $in ) ) {
+ $record->{ "SEQ_LEN" } = length $record->{ "SEQ" } if $record->{ "SEQ" }
-Maasha::Biopieces::put_record( { TOTAL_SEQ_LEN => $total }, $out );
-
Maasha::Biopieces::close_stream( $in );
Maasha::Biopieces::close_stream( $out );
Maasha::Biopieces::close_stream( $in );
Maasha::Biopieces::close_stream( $out );