Skip to content

Commit

Permalink
exon_count.pl
Browse files Browse the repository at this point in the history
  • Loading branch information
tnish committed Feb 8, 2011
1 parent ae11147 commit 1ee2fdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions GFF/lib/GFF/Parser.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions exon_filter.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1ee2fdb

Please sign in to comment.