-#!/usr/bin/env perl -w
+#!/usr/bin/env perl
# Copyright (C) 2007-2009 Martin A. Hansen.
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+use warnings;
use strict;
use Maasha::Biopieces;
{
if ( $record->{ "SEQ" } )
{
- if ( not $type ) {
- $type = Maasha::Seq::seq_guess_type( $record->{ "SEQ" } );
- }
+ $type = Maasha::Seq::seq_guess_type( $record->{ "SEQ" } ) if not $type;
- if ( $type ne "protein" )
+ if ( $type ne "PROTEIN" )
{
( $struct, $index ) = Maasha::Seq::fold_struct_rnafold( $record->{ "SEQ" } );
$record->{ "SEC_STRUCT" } = $struct;
Maasha::Biopieces::put_record( $record, $out );
}
+Maasha::Biopieces::close_stream( $in );
+Maasha::Biopieces::close_stream( $out );
+
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
BEGIN
{
- $run_time_beg = Maasha::Biopieces::run_time();
-
- Maasha::Biopieces::log_biopiece();
+ Maasha::Biopieces::status_set();
}
+
END
{
- Maasha::Biopieces::close_stream( $in );
- Maasha::Biopieces::close_stream( $out );
-
- $run_time_end = Maasha::Biopieces::run_time();
-
- Maasha::Biopieces::run_time_print( $run_time_beg, $run_time_end, $options );
+ Maasha::Biopieces::status_log();
}