Commit 8a45fdd9 authored by Will Spooner's avatar Will Spooner
Browse files

Added fetch_all_by_logic_name method - "Returns a listref of features created...

Added fetch_all_by_logic_name method - "Returns a listref of features created from the database. Only features with an analysis of type $logic_name will be returned."
parent ea3dbcc1
......@@ -254,6 +254,28 @@ sub fetch_all_by_Slice_constraint {
}
=head2 fetch_all_by_logic_name
Arg [3] : string $logic_name
the logic name of the type of features to obtain
Example : $fs = $a->fetch_all_by_logic_name('foobar');
Description: Returns a listref of features created from the database.
only features with an analysis of type $logic_name will be
returned.
Returntype : listref of Bio::EnsEMBL::SeqFeatures
Exceptions : thrown if $logic_name
Caller : General
Status : Experimental
=cut
sub fetch_all_by_logic_name {
my $self = shift;
my $logic_name = shift || throw( "Need a logic_name" );
my $constraint = $self->_logic_name_to_constraint( '',$logic_name );
return $self->fetch_all( $constraint )
}
#
# helper function used by fetch_all_by_Slice_constraint method
#
......
Markdown is supported
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