ensembl-hive  2.7.0
Bio::EnsEMBL::IdMapping::ScoreBuilder Class Reference
+ Inheritance diagram for Bio::EnsEMBL::IdMapping::ScoreBuilder:

Public Member Functions

public Bio::EnsEMBL::IdMapping::ScoredMappingMatrix create_shrinked_matrix ()
 
public void internal_id_rescore ()
 
public void log_matrix_stats ()
 
- Public Member Functions inherited from Bio::EnsEMBL::IdMapping::BaseObject
public $this new ()
 
public Filehandle get_filehandle ()
 
public Boolean file_exists ()
 
public SQLStatement fetch_value_from_db ()
 
public Int dump_table_to_file ()
 
public Int upload_file_into_table ()
 
public Bio::EnsEMBL::Utils::Logger logger ()
 
public Bio::EnsEMBL::Utils::ConfParser conf ()
 
public Bio::EnsEMBL::IdMapping::Cache cache ()
 

Detailed Description

Synopsis

This class is not instantiated. Please see subclasses for usage examples
(e.g. GeneScoreBuilder).

Description

This is the base class for the score builders used in the stable Id
mapping application. It contains methods which are used by more than one
ScoreBuilder.

Definition at line 22 of file ScoreBuilder.pm.

Member Function Documentation

◆ create_shrinked_matrix()

public Bio::EnsEMBL::IdMapping::ScoredMappingMatrix Bio::EnsEMBL::IdMapping::ScoreBuilder::create_shrinked_matrix ( )
  Arg[1]      : Bio::EnsEMBL::Idmapping::ScoredMappingMatrix $matrix - a scoring
                matrix
  Arg[2]      : Bio::EnsEMBL::Idmapping::MappingList $mappings - mappings
  Arg[3]      : String $cache_file - base name of a cache file (extension '.ser'
                will be added automatically) for the returned matrix
  Example     :
my $new_scores = $score_builder->create_shrinked_matrix(
$gene_scores, $mappings, "gene_matrix1");
  Description : Create a shrinked scoring matrix which doesn't contain entries
                which were already mapped. It also logs how many new mappings
                were added in this process.
  Return type : Bio::EnsEMBL::IdMapping::ScoredMappingMatrix
  Exceptions  : thrown on wrong or missing arguments
  Caller      : InternalIdMapper plugin
  Status      : At Risk
              : under development
 
Code:
click to view

◆ internal_id_rescore()

public void Bio::EnsEMBL::IdMapping::ScoreBuilder::internal_id_rescore ( )
  Arg[1]      : Bio::EnsEMBL::Idmapping::ScoredMappingMatrix $matrix - a scoring
                matrix
  Example     :
$score_builder->internal_id_rescore($gene_scores);
  Description : Rescore ambiguous mappings based on internal Ids. This is the
                last disambiguation step and is only useful if objects with the
                same internal Id were used in source and target dbs (e.g. in
                patch builds or if objects were copied from source to target).
                If a source and target gene have the same internal Id and there
                are mappings to other target genes then these *other* mappings
                are penalised.
  Return type : none
  Exceptions  : thrown on wrong or missing argument
  Caller      : InternalIdMapper plugins
  Status      : At Risk
              : under development
 
Code:
click to view

◆ log_matrix_stats()

public void Bio::EnsEMBL::IdMapping::ScoreBuilder::log_matrix_stats ( )
  Arg[1]      : Bio::EnsEMBL::Idmapping::ScoredMappingMatrix $matrix - a scoring
                matrix
  Example     :
$score_builder->log_matrix_stats;
  Description : Logs scoring matrix statistics (number of entries, min/max/avg
                scores).
  Return type : none
  Exceptions  : thrown on wrong or missing argument
  Caller      : general
  Status      : At Risk
              : under development
 
Code:
click to view

The documentation for this class was generated from the following file:
usage
public usage()
Bio::EnsEMBL::IdMapping::ScoreBuilder::log_matrix_stats
public void log_matrix_stats()
Bio::EnsEMBL::IdMapping::ScoredMappingMatrix
Definition: ScoredMappingMatrix.pm:44
Bio::EnsEMBL::IdMapping::ScoreBuilder::internal_id_rescore
public void internal_id_rescore()
Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::add_Entry
public Float add_Entry()
Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::new
public Bio::EnsEMBL::IdMapping::ScoredMappingMatrix new()
Bio::EnsEMBL::IdMapping::ScoreBuilder::create_shrinked_matrix
public Bio::EnsEMBL::IdMapping::ScoredMappingMatrix create_shrinked_matrix()