]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/rescan_seq
removed debug message
[biopieces.git] / bp_bin / rescan_seq
index 0e431eeae95b759cf58dd3e0cfc788e6c2cc1e1f..826a1f233da5d0a4c2ee1249e25da3643a90dd36 100755 (executable)
@@ -41,9 +41,10 @@ my ( $options, $in, $out, $record, $re_data, $re, $matches, $match, %re_hash, $r
 
 $options = Maasha::Biopieces::parse_options(
     [
-        { long => 'res_enz',    short => 'r', type => 'list',  mandatory => 'no', default => undef, allowed => undef, disallowed => undef },
-        { long => 'res_enz_in', short => 'R', type => 'file!', mandatory => 'no', default => undef, allowed => undef, disallowed => undef },
-        { long => 'no_matches', short => 'M', type => 'flag',  mandatory => 'no', default => undef, allowed => undef, disallowed => undef },
+        { long => 'res_enz',      short => 'r', type => 'list',  mandatory => 'no', default => undef, allowed => undef, disallowed => undef },
+        { long => 'res_enz_in',   short => 'R', type => 'file!', mandatory => 'no', default => undef, allowed => undef, disallowed => undef },
+        { long => 'res_enz_only', short => 'o', type => 'flag',  mandatory => 'no', default => undef, allowed => undef, disallowed => undef },
+        { long => 'no_matches',   short => 'M', type => 'flag',  mandatory => 'no', default => undef, allowed => undef, disallowed => undef },
     ]   
 );
 
@@ -70,6 +71,7 @@ while ( $record = Maasha::Biopieces::get_record( $in ) )
 
             $matches = Maasha::RestrictEnz::re_scan( $record->{ 'SEQ' }, $re );
 
+            %{ $new_record }              = %{ $record } if not $options->{ 'res_enz_only' };
             $new_record->{ 'RE' }         = $re->{ 'name' };
             $new_record->{ 'RE_COUNT' }   = scalar @{ $matches };
             $new_record->{ 'RE_MATCHES' } = join( ";", @{ $matches } ) if not $options->{ 'no_matches' };