Skip to content
Snippets Groups Projects
Commit 66a36bc3 authored by Glenn Proctor's avatar Glenn Proctor
Browse files

.. and put it back on the head.

parent d9583c70
No related branches found
No related tags found
No related merge requests found
......@@ -880,4 +880,29 @@ sub get_all_DAS_Features{
return \%das_features;
}
=head2 fetch_all_regulatory_features
Arg [1] : If set, regulatory features on transcripts belonging to this gene
are returned as well.
Example : @features = $gene->fetch_all_regulatory_features(1);
Description: Gets all the regulatory features associated with a
particular gene, and (optionally) its transcripts.
Each feature only appears once.
Returntype : Listref of Bio::EnsEMBL::RegulatoryFeature
Exceptions : If arg is not of correct type.
Caller : ?
=cut
sub fetch_all_regulatory_features {
my ($self, $recursive) = @_;
my $rfa = $self->adaptor->db->get_RegulatoryFeatureAdaptor();
return $rfa->fetch_all_by_gene($self, $recursive);
}
1;
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