|
ensembl-hive
2.7.0
|
Inheritance diagram for Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor:
ArchiveStableIdAdaptor does all SQL to create ArchiveStableIds and works of stable_id_event mapping_session peptite_archive gene_archive tables inside the core database. This whole module has a status of At Risk as it is under development.
Definition at line 63 of file ArchiveStableIdAdaptor.pm.
| protected Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::_dbname_index | ( | ) |
Undocumented method
Code:
| protected Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::_fetch_archive_id | ( | ) |
Undocumented method
Code:
| protected Bio::EnsEMBL::ArchiveStableId Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::_fetch_by_stable_id | ( | ) |
Arg [1] : string $stable_id Arg [2] : (optional) string $type Example :
Description : Retrives an ArchiveStableId that is the latest incarnation of given stable_id. Helper function to fetch_by_stable_id, should not be directly called. Returntype : Bio::EnsEMBL::ArchiveStableId or undef if not in database Exceptions : none Caller : general Status : At Risk : under development
Code:
| protected Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::_resolve_type | ( | ) |
Undocumented method
Code:
| public void Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::add_all_current_to_history | ( | ) |
Arg[1] : Bio::EnsEMBL::StableIdHistoryTree $history - the StableIdHistoryTree object to add the current IDs to Description : This method adds the current versions of all stable IDs found in a StableIdHistoryTree object to the tree, by creating appropriate Events for the stable IDs found in the *_stable_id tables. This is a helper method for fetch_history_tree_by_stable_id(), see there for more documentation. Return type : none (passed-in object is manipulated) Exceptions : thrown on missing or wrong argument Caller : internal Status : At Risk : under development
Code:
| public Listref Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::fetch_all_by_archive_id | ( | ) |
Arg [1] : Bio::EnsEMBL::ArchiveStableId $archive_id Arg [2] : String $return_type - type of ArchiveStableId to fetch Example :
Description : Given a ArchiveStableId it retrieves associated ArchiveStableIds of specified type (e.g. retrieve transcripts for genes or vice versa).
See also fetch_associated_archived() for a different approach to retrieve this data. Returntype : listref Bio::EnsEMBL::ArchiveStableId Exceptions : none Caller : Bio::EnsEMBL::ArchiveStableId->get_all_gene_archive_ids, get_all_transcript_archive_ids, get_all_translation_archive_ids Status : At Risk : under development
Code:
| public Listref Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::fetch_associated_archived | ( | ) |
Arg[1] : Bio::EnsEMBL::ArchiveStableId $arch_id - the ArchiveStableId to fetch associated archived IDs for Example :
Description : Fetches associated archived stable IDs from the db for a given
ArchiveStableId (version is taken into account).
Return type : Listref of
ArchiveStableId archived gene
ArchiveStableId archived transcript
(optional) ArchiveStableId archived translation
(optional) peptide sequence
Exceptions : thrown on missing or wrong argument
thrown if ArchiveStableID has no type
Caller : Bio::EnsEMBL::ArchiveStableId->get_all_associated_archived()
Status : At Risk
: under development
Code:
| public Bio::EnsEMBL::ArchiveStableId Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::fetch_by_stable_id | ( | ) |
Arg [1] : string $stable_id Arg [2] : (optional) string $type Example :
Description : Retrives an ArchiveStableId that is the latest incarnation of given stable_id. If the lookup fails, attempts to check for a version id delimited by a period (.) and lookup again using the version id. Returntype : Bio::EnsEMBL::ArchiveStableId or undef if not in database Exceptions : none Caller : general Status : At Risk : under development
Code:
| public Bio::EnsEMBL::ArchiveStableId Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::fetch_by_stable_id_dbname | ( | ) |
Arg [1] : string $stable_id Arg [2] : string $db_name Example :
Description : Create an ArchiveStableId from given arguments. Returntype : Bio::EnsEMBL::ArchiveStableId or undef if not in database Exceptions : none Caller : general Status : At Risk : under development
Code:
| public Bio::EnsEMBL::ArchiveStableId Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::fetch_by_stable_id_version | ( | ) |
Arg [1] : string $stable_id Arg [2] : int $version Example :
Description : Retrieve an ArchiveStableId with given version and stable ID. Returntype : Bio::EnsEMBL::ArchiveStableId Exceptions : none Caller : general Status : At Risk : under development
Code:
| public Bio::EnsEMBL::StableIdHistoryTree Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::fetch_history_tree_by_stable_id | ( | ) |
Arg [1] : String $stable_id - the stable ID to fetch the history tree for
Arg [2] : (optional) Int $num_high_scorers
number of mappings per stable ID allowed when filtering
Arg [3] : (optional) Int $max_rows
maximum number of stable IDs in history tree (used for
filtering)
Arg [4] : (optional) Float $time_limit
Optimise tree normally runs until it hits a minimised state
but this can take a very long time. Therefore you can
opt to bail out of the optimisation early. Specify the
time in seconds. Floating point values are supported should you
require sub-second limits
Example : Description : Returns the history tree for a given stable ID. This will
include a network of all stable IDs it is related to. The
method will try to return a minimal (sparse) set of nodes
(ArchiveStableIds) and links (StableIdEvents) by removing any
redundant entries and consolidating mapping events so that only
changes are recorded.
Return type : Bio::EnsEMBL::StableIdHistoryTree
Exceptions : thrown on missing argument
Caller : Bio::EnsEMBL::ArchiveStableId::get_history_tree, general
Status : At Risk
: under development
Code:
| public Listref Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::fetch_predecessor_history | ( | ) |
Arg [1] : Bio::EnsEMBL::ArchiveStableId $arch_id Example :
Description : Gives back a list of archive stable ids which are predecessors
in the stable_id_event tree of the given stable_id. Might well
be empty. This method is valid, but in most cases you will rather
want to use fetch_history_tree_by_stable_id().
Returntype : listref Bio::EnsEMBL::ArchiveStableId
Since every ArchiveStableId knows about it's successors, this is
a linked tree.
Exceptions : none
Caller : webcode for archive
Status : At Risk
: under development
Code:
| public Listref Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::fetch_predecessors_by_archive_id | ( | ) |
Arg [1] : Bio::EnsEMBL::ArchiveStableId Example :
Description : Retrieve a list of ArchiveStableIds that were mapped to the
given one. This method goes back only one level, to retrieve
a full predecessor history use fetch_predecessor_history, or
ideally fetch_history_tree_by_stable_id for the complete
history network.
Returntype : listref Bio::EnsEMBL::ArchiveStableId
Exceptions : none
Caller : Bio::EnsEMBL::ArchiveStableId->get_all_predecessors
Status : At Risk
: under development
Code:
| public Bio::EnsEMBL::StableIdEvent Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::fetch_stable_id_event | ( | ) |
Arg [1] : Bio::EnsEMBL::ArchiveStableId $arch_id Arg [2] : stable_id Example :
Description : Gives back the event that links an archive stable id
to a specific stable idReturntype : Bio::EnsEMBL::StableIdEvent Undef if no event was found Exceptions : none Caller : general Status : At Risk : under development
Code:
| public Listref Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::fetch_successor_history | ( | ) |
Arg [1] : Bio::EnsEMBL::ArchiveStableId $arch_id Example :
Description : Gives back a list of archive stable ids which are successors in
the stable_id_event tree of the given stable_id. Might well be
empty. This method is valid, but in most cases you will rather
want to use fetch_history_tree_by_stable_id().
Returntype : listref Bio::EnsEMBL::ArchiveStableId
Since every ArchiveStableId knows about it's successors, this is
a linked tree.
Exceptions : none
Caller : webcode for archive
Status : At Risk
: under development
Code:
| public Listref Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::fetch_successors_by_archive_id | ( | ) |
Arg [1] : Bio::EnsEMBL::ArchiveStableId Example :
Description : Retrieve a list of ArchiveStableIds that the given one was
mapped to. This method goes forward only one level, to retrieve
a full successor history use fetch_successor_history, or
ideally fetch_history_tree_by_stable_id for the complete
history network.
Returntype : listref Bio::EnsEMBL::ArchiveStableId
Exceptions : none
Caller : Bio::EnsEMBL::ArchiveStableId->get_all_successors
Status : At Risk
: under development
Code:
| public String Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::get_current_assembly | ( | ) |
Example :
Description : Returns the current assembly version (as found in the meta
table).
Return type : String
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Int Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::get_current_release | ( | ) |
Example :
Description : Returns the current release number (as found in the meta table).
Return type : Int
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public String Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::get_peptide | ( | ) |
Arg [1] : Bio::EnsEMBL::ArchiveStableId $arch_id Example :
Description : Retrieves the peptide string for given ArchiveStableId. If its not a peptide or not in the database returns undef. Returntype : string or undef Exceptions : none Caller : Bio::EnsEMBL::ArchiveStableId->get_peptide, general Status : At Risk : under development
Code:
| public Listref Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::list_dbnames | ( | ) |
Args : none Example :
Description : A list of available database names from the latest (current) to
the oldest (ordered).
Returntype : listref of strings
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Boolean Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::lookup_current | ( | ) |
Arg[1] : Bio::EnsEMBL::ArchiveStableId $arch_id - the stalbe ID to find the current version for Example :
Description : Look in [gene|transcript|translation]_stable_id if you can find
a current version for this stable ID. Set
ArchiveStableId->current_version if found.
Return type : Boolean (TRUE if current version found, else FALSE)
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public String Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::next_dbname | ( | ) |
Arg[1] : String $dbname - focus db name Example :
Description : Returns the name of the next newest database which has mapping
session information.
Return type : String (or undef if not available)
Exceptions : none
Caller : general
Status : At Risk
Code:
| public String Bio::EnsEMBL::DBSQL::ArchiveStableIdAdaptor::previous_dbname | ( | ) |
Arg[1] : String $dbname - focus db name Example :
Description : Returns the name of the next oldest database which has mapping
session information.
Return type : String (or undef if not available)
Exceptions : none
Caller : general
Status : At Risk
Code: