|
ensembl-hive
2.7.0
|
Inheritance diagram for Bio::EnsEMBL::DBSQL::RNAProductAdaptor:
This adaptor provides a means to retrieve and store Bio::EnsEMBL::RNAProduct objects from/in a database. RNAProduct objects only truly make sense in the context of their transcripts so the recommended means to retrieve RNAProducts is by retrieving the Transcript object first, and then fetching the RNAProduct.
Definition at line 37 of file RNAProductAdaptor.pm.
| protected ArrayRef Bio::EnsEMBL::DBSQL::RNAProductAdaptor::_fetch_direct_query | ( | ) |
Arg [1] : reference to an array consisting of:
Code:
| protected ArrayRef Bio::EnsEMBL::DBSQL::RNAProductAdaptor::_list_dbIDs | ( | ) |
Arg[1] : String $table Arg[2] : String $column Example :
Description : Local reimplementation to ensure multi-species RNAProducts
are limited to their species alone
Returntype : ArrayRef of specified IDs
Caller : Internal
Status : Unstable
Code:
| protected ArrayRef Bio::EnsEMBL::DBSQL::RNAProductAdaptor::_obj_from_sth | ( | ) |
Arg [1] : DBI statement handle
Description: PRIVATE internal method shared between public SQL-query
methods in order to avoid duplication of object-creation
logic.
Returntype : ArrayRef of either Bio::EnsEMBL::RNAProducts or undefs
Exceptions : throws if RNAProduct type is absent or unknown
Caller : internal
Status : At Risk (In Development)
Code:
| protected List Bio::EnsEMBL::DBSQL::RNAProductAdaptor::_tables | ( | ) |
Arg [1] : none
Description: PROTECTED implementation of superclass abstract method.
Returns the names, aliases of the tables to use for queries.
Returntype : list of listrefs of strings
Exceptions : none
Caller : internal
Status : Stable
Code:
| public Listref Bio::EnsEMBL::DBSQL::RNAProductAdaptor::fetch_all_by_external_name | ( | ) |
Arg [1] : String $external_name
An external identifier of the RNAProduct to be obtained
Arg [2] : (optional) String $external_db_name
The name of the external database from which the
identifier originates.
Arg [3] : Boolean override. Force SQL regex matching for users
who really do want to find all 'NM'
Example : Description: Retrieves all RNAProducts which are associated with
an external identifier such as a GO term, miRBase
identifer, etc. Usually there will only be a single
RNAProduct returned in the list reference, but not
always. If no RNAProducts with the external identifier
are found, a reference to an empty list is returned.
SQL wildcards % and _ are supported in the $external_name
but their use is somewhat restricted for performance reasons.
Users that really do want % and _ in the first three characters
should use argument 3 to prevent optimisations
Returntype : listref of Bio::EnsEMBL::RNAProduct
Exceptions : none
Caller : general
Status : Stable
Code:
| public Arrayref Bio::EnsEMBL::DBSQL::RNAProductAdaptor::fetch_all_by_Transcript | ( | ) |
Arg [1] : Bio::EnsEMBL::Transcript $transcript Example :
Description: Retrieves RNAProducts via their associated transcript.
If no RNAProducts are found, an empty list is returned.
Returntype : arrayref of Bio::EnsEMBL::RNAProducts
Exceptions : throw on incorrect argument
Caller : Transcript
Status : Stable
Code:
| public Arrayref Bio::EnsEMBL::DBSQL::RNAProductAdaptor::fetch_all_by_type | ( | ) |
Arg [1] : string $type_code Example :
Description: Retrieves RNAProducts via their type (e.g. miRNA, circRNA).
If no matching RNAProducts are found, an empty list is
returned.
Returntype : arrayref of Bio::EnsEMBL::RNAProducts
Exceptions : throws if type code is undefined
Caller : ?
Status : In Development
Code:
| public Bio::EnsEMBL::RNAProduct Bio::EnsEMBL::DBSQL::RNAProductAdaptor::fetch_by_dbID | ( | ) |
Arg [1] : int $dbID
The internal identifier of the RNAProduct to obtain
Example :Description: This fetches a RNAProduct object via its internal id. This is only debatably useful since RNAProducts do not make much sense outside of the context of their Transcript. Consider using fetch_by_Transcript instead. Returntype : Bio::EnsEMBL::RNAProduct, or undef if the RNAProduct is not found. Caller : ? Status : Stable
Code:
| public Bio::EnsEMBL::RNAProduct Bio::EnsEMBL::DBSQL::RNAProductAdaptor::fetch_by_stable_id | ( | ) |
Arg [1] : string $stable_id
The stable identifier of the RNAProduct to obtain
Example :Description: This fetches a RNAProduct object via its stable id. Returntype : Bio::EnsEMBL::RNAProduct, or undef if the RNAProduct is not found. Caller : ? Status : Stable
Code:
| public List Bio::EnsEMBL::DBSQL::RNAProductAdaptor::list_dbIDs | ( | ) |
Arg [1] : none Example :
Description: Gets an array of internal ids for all RNAProducts in the current db Returntype : list of ints Exceptions : none Caller : ? Status : Stable
Code:
| public void Bio::EnsEMBL::DBSQL::RNAProductAdaptor::remove | ( | ) |
Arg [1] : Bio::EnsEMBL::RNAProduct $rnaproduct The RNAProduct to be removed from the database Example :
Description: Removes a RNAProduct, along with all associated information from the database. Returntype : none Exceptions : throw on incorrect arguments Caller : ? Status : Stable
Code:
| public Int Bio::EnsEMBL::DBSQL::RNAProductAdaptor::store | ( | ) |
Arg [1] : Bio::EnsEMBL::RNAProduct $rnaproduct The RNAProduct to be written to the database Arg [2] : Int $transcript_dbID The identifier of the transcript that this RNAProduct is associated with Example :
Description: Stores a RNAProduct in the database and returns the new internal identifier for the stored RNAProduct. Returntype : Int Exceptions : throw on incorrect arguments Caller : general Status : Stable
Code: