diff --git a/GFF/lib/GFF/Parser.pm b/GFF/lib/GFF/Parser.pm index 7c11491..9e15ad9 100644 --- a/GFF/lib/GFF/Parser.pm +++ b/GFF/lib/GFF/Parser.pm @@ -119,7 +119,7 @@ sub slurp_index{ $counter++; } } - carp "warning: $badrecords out of $counter records didn't have a column/attribute $column in $self->file_or_handle" + carp "warning: $badrecords out of $counter records didn't have a column/attribute $column in " . $self->file_or_handle if $badrecords; return \%index; @@ -183,7 +183,8 @@ sub _parse_gff_hashref{ } if ($locus_tag){ - if ($accum{$locus_tag} =~ /([^\.]+)\.([^\.]+)/){ + if (exists($accum{$locus_tag}) && + $accum{$locus_tag} =~ /([^\.]+)\.([^\.]+)/){ $accum{$locus_tag . '.prefix'} = $1; $accum{$locus_tag . '.suffix'} = $2; } else { diff --git a/exon_filter.pl b/exon_filter.pl index d091ac1..d0a2e5c 100755 --- a/exon_filter.pl +++ b/exon_filter.pl @@ -9,8 +9,8 @@ use Pod::Usage; use Getopt::Long; use FindBin; -use lib "$FindBin::Bin/DZLab-Tools/lib"; -use DZLab::Tools::GFF qw/gff_to_string gff_slurp/; +use lib "$FindBin::Bin/GFF/lib"; +use GFF; my $locus_tag = q/ID/; my $input;