Skip to content
Snippets Groups Projects
Commit 3df039d4 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Add another example to fetch_all_by_name().

parent 2691614a
No related branches found
No related tags found
No related merge requests found
......@@ -66,13 +66,16 @@ use base qw( Bio::EnsEMBL::DBSQL::BaseAdaptor );
Arg [2] : (optional) String, name of ontology
Description : Fetches ontology term(s) given a name, a synonym, or a
SQL pattern like "%splice_site"
SQL pattern like "%splice_site%"
Example :
my ($term) =
@{ $ot_adaptor->fetch_by_name( 'DNA_binding_site', 'SO' ) };
# Will find terms in both SO and GO:
my @terms = @{ $ot_adaptor->fetch_by_name('%splice_site%') };
Return type : listref of Bio::EnsEMBL::OntologyTerm
=cut
......
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