X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fread_gff;h=140321958a12dda44cc61f50d156c3611d25f157;hb=5de6112b70b59420b245ce636a8b2e3c90acbe00;hp=d3785b64c0c8f8ba06743f47f44b74b957fbb8e5;hpb=5aed4676ad1bf35abbade6215ac90ee591e6d8fe;p=biopieces.git diff --git a/bp_bin/read_gff b/bp_bin/read_gff index d3785b6..1403219 100755 --- a/bp_bin/read_gff +++ b/bp_bin/read_gff @@ -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" };