Skip to content
Snippets Groups Projects
Commit 2518cd00 authored by Patrick Meidl's avatar Patrick Meidl
Browse files

first go at DAS handling

parent 47d2e326
No related branches found
No related tags found
No related merge requests found
......@@ -223,6 +223,43 @@ sub project {
}
sub get_all_DASFeatures_dsn {
my $self = shift;
foreach my $pair (@{ $self->get_all_Slice_Mapper_pairs }) {
my ($slice, $mapper) = @$pair;
# call $method on each native slice composing the MappedSlice
my ($featref, $styleref, $segref) =
@{ $slice->get_all_DASFeatures_dsn(@_) };
use Data::Dumper;
warn Data::Dumper::Dumper($featref);
warn Data::Dumper::Dumper($styleref);
warn Data::Dumper::Dumper($segref);
}
}
sub get_all_DAS_Features {
my $self = shift;
foreach my $pair (@{ $self->get_all_Slice_Mapper_pairs }) {
my ($slice, $mapper) = @$pair;
print "\nFetching DAS features for ".$slice->name."\n";
# call $method on each native slice composing the MappedSlice
my ($featref, $styleref, $segref) = $slice->get_all_DAS_Features;
return ($featref, $styleref, $segref);
}
}
=head2
Arg[1] :
......@@ -250,6 +287,7 @@ sub AUTOLOAD {
foreach my $pair (@{ $self->get_all_Slice_Mapper_pairs }) {
my ($slice, $mapper) = @$pair;
#warn $slice->name;
# call $method on each native slice composing the MappedSlice
my @features = @{ $slice->$method(@_) };
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment