X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fremove_indels;h=9a1ad033a0fbe508f4f12891ba06885179040814;hb=f2b18307294690cf1376b51357469910b509e695;hp=3156b44d60c29fa7418033c31868c1aec0546282;hpb=9bf550c4335d8860c5f6f9c4db0f385f1b36c1dd;p=biopieces.git diff --git a/bp_bin/remove_indels b/bp_bin/remove_indels index 3156b44..9a1ad03 100755 --- a/bp_bin/remove_indels +++ b/bp_bin/remove_indels @@ -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 ); }