Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl
Commits
d08c4adf
Commit
d08c4adf
authored
Jun 21, 2018
by
Marek Szuba
Browse files
Implement RNAProductAdaptor::fetch_all_by_type_id()
parent
e2d2c208
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
modules/Bio/EnsEMBL/DBSQL/RNAProductAdaptor.pm
modules/Bio/EnsEMBL/DBSQL/RNAProductAdaptor.pm
+23
-0
No files found.
modules/Bio/EnsEMBL/DBSQL/RNAProductAdaptor.pm
View file @
d08c4adf
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment