]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/read_gff
removed debug message
[biopieces.git] / bp_bin / read_gff
index 3901757e16980816ca9f7b9c2afb8a742f621132..140321958a12dda44cc61f50d156c3611d25f157 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2007-2009 Martin A. Hansen.
 
@@ -26,6 +26,7 @@
 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
 
+use warnings;
 use strict;
 use Maasha::Biopieces;
 use Maasha::Filesys;
@@ -57,9 +58,11 @@ if ( $options->{ 'data_in' } )
 
     $num = 1;
 
-    while ( $entry = Maasha::GFF::get_entry( $data_in ) )
+    while ( $entry = Maasha::GFF::gff_entry_get( $data_in ) )
     {
-        Maasha::Biopieces::put_record( $entry, $out );
+        if ( $record = Maasha::GFF::gff2biopiece( $entry ) ) {
+            Maasha::Biopieces::put_record( $record, $out );
+        }
 
         last if $options->{ "num" } and $num == $options->{ "num" };