-#!/usr/bin/env perl -w
+#!/usr/bin/env perl
# Copyright (C) 2007-2009 Martin A. Hansen.
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+use warnings;
use strict;
use Maasha::Biopieces;
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 );
}