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

Public Member Functions

public Bio::EnsEMBL::IdMapping::SyntenyFramework new ()
 
public void build_synteny ()
 
protected _by_overlap ()
 
public void add_SyntenyRegion ()
 
public Arrayref get_all_SyntenyRegions ()
 
public Bio::EnsEMBL::IdMapping::ScoredMappingMatrix rescore_gene_matrix_lsf ()
 
public Bio::EnsEMBL::IdMapping::ScoredMappingMatrix rescore_gene_matrix ()
 
public Bio::EnsEMBL::Utils::Logger logger ()
 
public Bio::EnsEMBL::Utils::ConfParser conf ()
 
public Bio::EnsEMBL::IdMapping::Cache cache ()
 
- Public Member Functions inherited from Bio::EnsEMBL::IdMapping::Serialisable
public Bio::EnsEMBL::IdMapping::Serialisable new ()
 
public String write_to_file ()
 
public Bio::EnsEMBL::IdMapping::Serialisable read_from_file ()
 
public String dump_path ()
 
public String cache_file_name ()
 
public String cache_file ()
 
public Boolean loaded ()
 

Detailed Description

Synopsis

# build the SyntenyFramework from unambiguous gene mappings
-DUMP_PATH => $dump_path,
-CACHE_FILE => 'synteny_framework.ser',
-LOGGER => $self->logger,
-CONF => $self->conf,
-CACHE => $self->cache,
);
$sf->build_synteny($gene_mappings);
# use it to rescore the genes
$gene_scores = $sf->rescore_gene_matrix_lsf($gene_scores);

Description

The SyntenyFramework is a set of SyntenyRegions. These are pairs of
locations very analoguous to the information in the assembly table (the
locations dont have to be the same length though). They are built from
genes that map uniquely between source and target.

Once built, the SyntenyFramework is used to score source and target gene
pairs to determine whether they are similar. This process is slow (it
involves testing all gene pairs against all SyntenyRegions), this module
therefor has built-in support to run the process in parallel via LSF.

Definition at line 41 of file SyntenyFramework.pm.

Member Function Documentation

◆ _by_overlap()

protected Bio::EnsEMBL::IdMapping::SyntenyFramework::_by_overlap ( )

Undocumented method

Code:
click to view

◆ add_SyntenyRegion()

public void Bio::EnsEMBL::IdMapping::SyntenyFramework::add_SyntenyRegion ( )
  Arg[1]      : Bio::EnsEMBL::IdMaping::SyntenyRegion - SyntenyRegion to add
  Example     :
$synteny_framework->add_SyntenyRegion($synteny_region);
  Description : Adds a SyntenyRegion to the framework. For speed reasons (and
                since this is an internal method), no argument check is done.
  Return type : none
  Exceptions  : none
  Caller      : internal
  Status      : At Risk
              : under development
 
Code:
click to view

◆ build_synteny()

public void Bio::EnsEMBL::IdMapping::SyntenyFramework::build_synteny ( )
  Arg[1]      : Bio::EnsEMBL::IdMapping::MappingList $mappings - gene mappings
                to build the SyntenyFramework from
  Example     :
$synteny_framework->build_synteny($gene_mappings);
  Description : Builds the SyntenyFramework from unambiguous gene mappings.
                SyntenyRegions are allowed to overlap. At most two overlapping
                SyntenyRegions are merged (otherwise we'd get too large
                SyntenyRegions with little information content).
  Return type : none
  Exceptions  : thrown on wrong or missing argument
  Caller      : InternalIdMapper plugins
  Status      : At Risk
              : under development
 
Code:
click to view

◆ cache()

public Bio::EnsEMBL::IdMapping::Cache Bio::EnsEMBL::IdMapping::SyntenyFramework::cache ( )
  Arg[1]      : (optional) Bio::EnsEMBL::IdMapping::Cache - the cache to set
  Example     :
$object->cache->read_from_file('source');
  Description : Getter/setter for cache object
  Return type : Bio::EnsEMBL::IdMapping::Cache
  Exceptions  : none
  Caller      : constructor
  Status      : At Risk
              : under development
 
Code:
click to view

◆ conf()

public Bio::EnsEMBL::Utils::ConfParser Bio::EnsEMBL::IdMapping::SyntenyFramework::conf ( )
  Arg[1]      : (optional) Bio::EnsEMBL::Utils::ConfParser - the configuration
                to set
  Example     :
my $basedir = $object->conf->param('basedir');
  Description : Getter/setter for configuration object
  Return type : Bio::EnsEMBL::Utils::ConfParser
  Exceptions  : none
  Caller      : constructor
  Status      : At Risk
              : under development
 
Code:
click to view

◆ get_all_SyntenyRegions()

public Arrayref Bio::EnsEMBL::IdMapping::SyntenyFramework::get_all_SyntenyRegions ( )
  Example     :
foreach my $sr (@{ $sf->get_all_SyntenyRegions }) {
@section autotoc_md15 do something with the SyntenyRegion
}
  Description : Get a list of all SyntenyRegions in the framework.
  Return type : Arrayref of Bio::EnsEMBL::IdMapping::SyntenyRegion
  Exceptions  : none
  Caller      : general
  Status      : At Risk
              : under development
 
Code:
click to view

◆ logger()

public Bio::EnsEMBL::Utils::Logger Bio::EnsEMBL::IdMapping::SyntenyFramework::logger ( )
  Arg[1]      : (optional) Bio::EnsEMBL::Utils::Logger - the logger to set
  Example     :
$object->logger->info("Starting ID mapping.\n");
  Description : Getter/setter for logger object
  Return type : Bio::EnsEMBL::Utils::Logger
  Exceptions  : none
  Caller      : constructor
  Status      : At Risk
              : under development
 
Code:
click to view

◆ new()

public Bio::EnsEMBL::IdMapping::SyntenyFramework Bio::EnsEMBL::IdMapping::SyntenyFramework::new ( )
  Arg [LOGGER]: Bio::EnsEMBL::Utils::Logger $logger - a logger object
  Arg [CONF]  : Bio::EnsEMBL::Utils::ConfParser $conf - a configuration object
  Arg [CACHE] : Bio::EnsEMBL::IdMapping::Cache $cache - a cache object
  Arg [DUMP_PATH] : String - path for object serialisation
  Arg [CACHE_FILE] : String - filename of serialised object
  Example     :
-DUMP_PATH => $dump_path,
-CACHE_FILE => 'synteny_framework.ser',
-LOGGER => $self->logger,
-CONF => $self->conf,
-CACHE => $self->cache,
);
  Description : Constructor.
  Return type : Bio::EnsEMBL::IdMapping::SyntenyFramework
  Exceptions  : thrown on wrong or missing arguments
  Caller      : InternalIdMapper plugins
  Status      : At Risk
              : under development
 
Code:
click to view

◆ rescore_gene_matrix()

public Bio::EnsEMBL::IdMapping::ScoredMappingMatrix Bio::EnsEMBL::IdMapping::SyntenyFramework::rescore_gene_matrix ( )
  Arg[1]      : Bio::EnsEMBL::IdMapping::ScoredmappingMatrix $matrix - gene
                scores to rescore
  Example     :
my $new_scores = $sf->rescore_gene_matrix($gene_scores);
  Description : Rescores a gene matrix. Retains 70% of old score and builds
                other 30% from the synteny match.
  Return type : Bio::EnsEMBL::IdMapping::ScoredMappingMatrix
  Exceptions  : thrown on wrong or missing argument
  Caller      : InternalIdMapper plugins
  Status      : At Risk
              : under development
 
Code:
click to view

◆ rescore_gene_matrix_lsf()

public Bio::EnsEMBL::IdMapping::ScoredMappingMatrix Bio::EnsEMBL::IdMapping::SyntenyFramework::rescore_gene_matrix_lsf ( )
  Arg[1]      : Bio::EnsEMBL::IdMapping::ScoredmappingMatrix $matrix - gene
                scores to rescore
  Example     :
my $new_scores = $sf->rescore_gene_matrix_lsf($gene_scores);
  Description : This method runs rescore_gene_matrix() (via the
                synteny_resocre.pl script) in parallel with lsf, then combines
                the results to return a single rescored scoring matrix.
                Parallelisation is done by chunking the scoring matrix into
                several pieces (determined by the --synteny_rescore_jobs
                configuration option).
  Return type : Bio::EnsEMBL::IdMapping::ScoredMappingMatrix
  Exceptions  : thrown on wrong or missing argument
                thrown on filesystem I/O error
                thrown on failure of one or mor lsf jobs
  Caller      : InternalIdMapper plugins
  Status      : At Risk
              : under development
 
Code:
click to view

The documentation for this class was generated from the following file:
Bio::EnsEMBL::IdMapping::SyntenyFramework::rescore_gene_matrix
public Bio::EnsEMBL::IdMapping::ScoredMappingMatrix rescore_gene_matrix()
Bio::EnsEMBL::IdMapping::SyntenyFramework::_by_overlap
protected _by_overlap()
Bio::EnsEMBL::IdMapping::ScoredMappingMatrix
Definition: ScoredMappingMatrix.pm:44
Bio::EnsEMBL::IdMapping::SyntenyFramework::get_all_SyntenyRegions
public Arrayref get_all_SyntenyRegions()
Bio::EnsEMBL::IdMapping::SyntenyFramework
Definition: SyntenyFramework.pm:41
Bio::EnsEMBL::IdMapping::SyntenyFramework::rescore_gene_matrix_lsf
public Bio::EnsEMBL::IdMapping::ScoredMappingMatrix rescore_gene_matrix_lsf()
Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::set_score
public Float set_score()
Bio::EnsEMBL::IdMapping::ScoredMappingMatrix::new
public Bio::EnsEMBL::IdMapping::ScoredMappingMatrix new()
Bio::EnsEMBL::IdMapping::SyntenyFramework::build_synteny
public void build_synteny()
Bio::EnsEMBL::IdMapping::SyntenyFramework::new
public Bio::EnsEMBL::IdMapping::SyntenyFramework new()
Bio::EnsEMBL::IdMapping::Serialisable::read_from_file
public Bio::EnsEMBL::IdMapping::Serialisable read_from_file()
Bio::EnsEMBL::IdMapping::SyntenyRegion::new_fast
public A new_fast()
Bio::EnsEMBL::IdMapping::Serialisable::write_to_file
public String write_to_file()
Bio::EnsEMBL::IdMapping::SyntenyFramework::cache
public Bio::EnsEMBL::IdMapping::Cache cache()
Bio::EnsEMBL::IdMapping::SyntenyFramework::conf
public Bio::EnsEMBL::Utils::ConfParser conf()
Bio::EnsEMBL::IdMapping::SyntenyFramework::add_SyntenyRegion
public void add_SyntenyRegion()
Bio::EnsEMBL::IdMapping::SyntenyRegion
Definition: SyntenyRegion.pm:33
Bio::EnsEMBL::IdMapping::SyntenyFramework::logger
public Bio::EnsEMBL::Utils::Logger logger()