X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fremove_indels;h=9a1ad033a0fbe508f4f12891ba06885179040814;hb=af282a65d141826c15944437b07a0353dd14e79c;hp=59bbd4f92b932073a7fdaecd211d410712e18f7e;hpb=5aed4676ad1bf35abbade6215ac90ee591e6d8fe;p=biopieces.git diff --git a/bp_bin/remove_indels b/bp_bin/remove_indels index 59bbd4f..9a1ad03 100755 --- a/bp_bin/remove_indels +++ b/bp_bin/remove_indels @@ -26,6 +26,7 @@ # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +use warnings; use strict; use Maasha::Biopieces; @@ -42,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 ); }