Skip to content
Snippets Groups Projects
Commit d08c4adf authored by Marek Szuba's avatar Marek Szuba
Browse files

Implement RNAProductAdaptor::fetch_all_by_type_id()

parent e2d2c208
No related branches found
No related tags found
2 merge requests!371Add support for mature RNA products of transcripts (e.g. MicroRNA) to the API and schema,!371Add support for mature RNA products of transcripts (e.g. MicroRNA) to the API and schema
......@@ -159,6 +159,29 @@ sub fetch_all_by_external_name {
}
=head2 fetch_all_by_type_id
Arg [1] : int
Example : $rps = $rnaproduct_adaptor->fetch_by_type_id(1);
Description: Retrieves RNAProducts via their type (e.g. miRNA, circRNA).
The type is presently expressed as numerical ID, which is
of limited usefulness; support for human-readable forms
will follow (FIXME).
If no RNAProducts are found, an empty list is returned.
Returntype : arrayref of Bio::EnsEMBL::RNAProducts
Exceptions : none
Caller : ?
Status : In Development
=cut
sub fetch_all_by_type_id {
my ($self, $type_id) = @_;
return $self->_fetch_direct_query(['rnaproduct_type_id', $type_id, SQL_INTEGER]);
}
=head2 fetch_by_dbID
Arg [1] : int $dbID
......
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