Skip to content
Snippets Groups Projects
Commit 0bb11142 authored by Graham McVicker's avatar Graham McVicker
Browse files

feature::seq now gets the sequence from its attached slice rather than going through adaptor

parent a8b62577
No related branches found
No related tags found
No related merge requests found
......@@ -775,15 +775,8 @@ sub seq {
return undef;
}
my $slice_adaptor = $self->{'slice'}->adaptor();
return undef unless defined $slice_adaptor;
my $seq_adaptor = $slice_adaptor->db()->get_SequenceAdaptor();
return ${$seq_adaptor->fetch_by_Slice_start_end_strand
(
$self->{'slice'}, $self->{'start'},
$self->{'end'}, $self->{'strand'}
)};
return $self->{'slice'}->subseq($self->{'start'}, $self->{'end'},
$self->{'strand'});
}
......
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