|
ensembl-hive
2.7.0
|
Inheritance diagram for Bio::EnsEMBL::IdMapping::ScoredMappingMatrix:
This object represents a collection of scores between source and target objects. It holds a list of Bio::EnsEMBL::IdMapping::Entry objects and has methods to retrieve indiviual or all Entries, as well as derived data like number of unique sources or targets, or various counts and averages. It is the main collection for dealing with scored relationships in the stable Id mapping application.
Definition at line 44 of file ScoredMappingMatrix.pm.
| public Float Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::add_Entry | ( | ) |
Arg[1] : Bio::EnsEMBL::IdMapping::Entry $entry - Entry to add Example :
Description : Adds an Entry to the scoring matrix. Return type : Float - the Entry's score Exceptions : thrown on wrong or missing argument Caller : general Status : At Risk : under development
Code:
| public Float Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::add_score | ( | ) |
Arg[1] : Int $source - source object's internal Id ("dbID")
Arg[2] : Int $target - target object's internal Id ("dbID")
Arg[3] : Float $score - score for source/target pair
Example : Description : Adds a score for a source/target pair to the scoring matrix.
This is a low-level version of add_Entry().
Return type : Float - the score
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public void Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::flush | ( | ) |
Example :
Description : Flushes (empties) the scoring matrix.
Return type : none
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Arrayref Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::get_all_Entries | ( | ) |
Example :
Description : Returns a list of all Entries in the scoring matrix. Return type : Arrayref of Bio::EnsEMBL::IdMapping::Entry objects Exceptions : none Caller : general Status : At Risk : under development
Code:
| public Arrayref Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::get_all_sources | ( | ) |
Example :
Description : Returns a list of all sources in the scoring matrix.
Return type : Arrayref of Int (source objects' internal Ids)
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Arrayref Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::get_all_targets | ( | ) |
Example :
Description : Returns a list of all targets in the scoring matrix.
Return type : Arrayref of Int (target objects' internal Ids)
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Float Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::get_average_score | ( | ) |
Example :
Description : Returns the average (mean) score in the matrix.
Return type : Float
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Arrayref Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::get_Entries_for_source | ( | ) |
Arg[1] : Int $source - source object's internal Id ("dbID")
Example : Description : Returns a list of all Entries in the scoring matrix for a given
source object.
Return type : Arrayref of Bio::EnsEMBL::IdMapping::Entry objects
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Arrayref Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::get_Entries_for_target | ( | ) |
Arg[1] : Int $target - target object's internal Id ("dbID")
Example : Description : Returns a list of all Entries in the scoring matrix for a given
target object.
Return type : Arrayref of Bio::EnsEMBL::IdMapping::Entry objects
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Bio::EnsEMBL::IdMapping::Entry Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::get_Entry | ( | ) |
Arg[1] : Int $source - source object's internal Id ("dbID")
Arg[2] : Int $target - target object's internal Id ("dbID")
Example :Description : Gets an Entry from the scoring matrix for a given source and target object. Return type : Bio::EnsEMBL::IdMapping::Entry or undef Exceptions : none Caller : general Status : At Risk : under development
Code:
| public Int Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::get_entry_count | ( | ) |
Example :
Description : Returns the number of Entries in the scoring matrix.
Return type : Int
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Arrayref Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::get_min_max_scores | ( | ) |
Example :
Description : Returns the mininum and maximum score in the scoring matrix.
Return type : Arrayref of Float [min_score, max_score]
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Float Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::get_score | ( | ) |
Arg[1] : Int $source - source object's internal Id ("dbID")
Arg[2] : Int $target - target object's internal Id ("dbID")
Example : Description : Gets the score from the scoring matrix for a given source and
target object.
Return type : Float or undef
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Int Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::get_source_count | ( | ) |
Example :
Description : Returns the number of distinct sources in the scoring matrix.
Return type : Int
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Arrayref Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::get_sources_for_target | ( | ) |
Arg[1] : Int $target - target object's internal Id ("dbID")
Example : Description : Returns a list of all sources which have a score against a given
target object.
Return type : Arrayref of Int (source objects' internal Ids)
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Int Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::get_target_count | ( | ) |
Example :
Description : Returns the number of distinct targets in the scoring matrix.
Return type : Int
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Arrayref Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::get_targets_for_source | ( | ) |
Arg[1] : Int $source - source object's internal Id ("dbID")
Example : Description : Returns a list of all targets which have a score against a given
source object.
Return type : Arrayref of Int (target objects' internal Ids)
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public void Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::log | ( | ) |
Arg[1] : String $type - object type (e.g. 'gene') Arg[2] : String $dump_path - path for writing output Example :
Description : Logs all Entries in the scoring matrix to a file. Used for
debugging.
Return type : none
Exceptions : thrown on I/0 error
Caller : general
Status : At Risk
: under development
Code:
| public Int Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::merge | ( | ) |
Arg[1] : Bio::EnsEMBL::IdMapping::ScoredMappingMatrix $matrix - another matrix to merge with Example :
Description : Merges two scoring matrices. If there's an Entry for a source/target pair in both matrices, the higher score will be retained. Return type : Int - number of Entries added or updated Exceptions : thrown on wrong or missing argument Caller : general Status : At Risk : under development
Code:
| public Bio::EnsEMBL::IdMapping::ScoredMappingMatrix Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::new | ( | ) |
Arg[1-N] : see superclass Example :
Description : Constructor. Return type : Bio::EnsEMBL::IdMapping::ScoredMappingMatrix Exceptions : none Caller : general Status : At Risk : under development
Code:
| public Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::remove_Entry | ( | ) |
Undocumented method
Code:
| public Float Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::set_score | ( | ) |
Arg[1] : Int $source - source object's internal Id ("dbID")
Arg[2] : Int $target - target object's internal Id ("dbID")
Arg[3] : Float $score - score for source/target pair
Example : Description : Sets the score for a source/target pair in the scoring matrix.
This method is similar to add_score, but assumes that the Entry
has been added before, so won't update the sources and target
lists.
Return type : Float - the score
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Int Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::size | ( | ) |
Example :
Description : Returns the size of the scoring matrix. Same value as returned
by get_entry_count().
Return type : Int
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Bio::EnsEMBL::IdMapping::ScoredMappingMatrix Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::sub_matrix | ( | ) |
Arg[1] : Int $start - start index (inclusive) Arg[2] : Int $end - end index (inclusive) Example :
Description : Returns a sub-matrix of the ScoredMappingMatrix. The arguments ($start and $end) specify the position of the first and last element to return (inclusive, counting starts with element 1, not 0) Return type : Bio::EnsEMBL::IdMapping::ScoredMappingMatrix Exceptions : none Caller : general Status : At Risk : under development
Code:
| public String Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::to_string | ( | ) |
Example :
Description : Returns a string representation of the scoring matrix. This is
simply a multi-line string, where each line is a stringified
Entry.
Useful for debugging and logging.
Return type : String
Exceptions : none
Caller : general
Status : At Risk
: under development
Code:
| public Float Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::update_Entry | ( | ) |
Arg[1] : Bio::EnsEMBL::IdMapping::Entry $entry - Entry to update Example :
Description : Updates an Entry (or rather its score) in the scoring matrix. Actually delegates to add_Entry(), only there as an intuitively named wrapper. Return type : Float - the Entry's score Exceptions : thrown on wrong or missing argument Caller : general Status : At Risk : under development
Code: