Skip to content

Commit

Permalink
seqfeatures are just a location that may possibly have sublocations
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Fields committed Feb 20, 2012
1 parent 2caef8f commit b1ba37b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/Biome/SeqFeature/Generic.pm
Expand Up @@ -5,20 +5,13 @@ use namespace::clean -except => qw(meta);
use List::MoreUtils qw(any);
use Biome::Location::Simple;

with 'Biome::Role::Location::Simple';
with 'Biome::Role::Location::Split';
with 'Biome::Role::Location::Locatable';
with 'Biome::Role::SeqFeature';

sub BUILD {
my ($self, $params) = @_;
if (any { exists $params->{$_} } qw(start end strand seq_id)) {
$self->add_sub_Location(Biome::Location::Simple->new(%$params));
}
}

__PACKAGE__->meta->make_immutable;

1;

__END__

0 comments on commit b1ba37b

Please sign in to comment.