Skip to content

Commit

Permalink
fixed the missing landmarks AGAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
lstein committed Mar 17, 2004
1 parent 2e34c9d commit d47d985
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/Bio/Graphics/Browser.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package Bio::Graphics::Browser;
# $Id: Browser.pm,v 1.126 2004-03-16 21:28:53 lstein Exp $
# $Id: Browser.pm,v 1.127 2004-03-17 21:48:53 lstein Exp $
# This package provides methods that support the Generic Genome Browser.
# Its main utility for plugin writers is to access the configuration file information

Expand Down Expand Up @@ -1420,12 +1420,14 @@ sub _feature_get {
# were mentioned in the config file.
my $types = $self->_all_types($db);
my @filtered = grep {
my $type = $_->type;
my $method = eval {$_->method} || '';
my $class = eval {$_->class} || '';
$type eq 'Segment' || $types->{$type} || $types->{$method} || $class eq $refclass;
my $type = $_->type;
my $method = eval {$_->method} || '';
my $fclass = eval {$_->class} || '';
$type eq 'Segment' || $types->{$type} || $types->{$method} || $class eq $refclass || $fclass eq $class;
} @segments;

warn "segments = @segments, filtered= @filtered";

# Return appropriately filtered features
return @filtered;
}
Expand Down

0 comments on commit d47d985

Please sign in to comment.