Archive Ensembl HomeArchive Ensembl Home
Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor Class Reference
Inheritance diagram for Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor:

List of all members.


Class Summary

Description

Base adaptor for objects inheriting from NestedSet
 

Definition at line 14 of file NestedSetAdaptor.pm.

Available Methods

protected _build_tree_from_nodes ()
protected _columns ()
protected _construct_sql_query ()
protected _default_where_clause ()
protected _final_clause ()
protected Listref _generic_fetch ()
protected _get_starting_lr_index ()
protected _left_join ()
protected _list_dbIDs ()
protected _lr_table_name ()
protected _objs_from_sth ()
protected _straight_join ()
protected _tables ()
public Listref bind_param_generic_fetch ()
public cache_add_object ()
public cache_fetch_by_id ()
public clear_cache ()
public columns ()
public create_instance_from_rowhash ()
public
Bio::EnsEMBL::DBSQL::DBAdaptor 
db ()
public
Bio::EnsEMBL::DBSQL::DBConnection 
dbc ()
public default_where_clause ()
public DESTROY ()
public dump_data ()
public Arrayref fetch_all ()
public Listref fetch_all_by_dbID_list ()
public fetch_all_children_for_node ()
public fetch_all_leaves_indexed ()
public fetch_all_roots ()
public Bio::EnsEMBL::Feature fetch_by_dbID ()
public
Bio::EnsEMBL::Compara::NestedSet 
fetch_first_shared_ancestor_indexed ()
public fetch_node_by_node_id ()
public fetch_parent_for_node ()
public
Bio::EnsEMBL::Compara::NestedSet 
fetch_root_by_node ()
public fetch_subroot_by_left_right_index ()
public fetch_subtree_under_node ()
public fetch_tree_at_node_id ()
public final_clause ()
public Listref generic_fetch ()
public get_dumped_data ()
public init_instance_from_rowhash ()
public Boolean is_multispecies ()
public Scalar last_insert_id ()
public left_join_clause ()
public new ()
public DBI::StatementHandle prepare ()
public Int species_id ()
public store ()
public Nothing sync_tree_leftright_index ()
public tables ()
public update ()
public update_subtree ()

Method Documentation

protected Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::_build_tree_from_nodes ( )

Undocumented method

Code:
click to view
protected Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::_construct_sql_query ( )

Undocumented method

Code:
click to view
protected Listref Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::_generic_fetch ( )
  Arg [1]    : (optional) string $constraint
               An SQL query constraint (i.e. part of the WHERE clause)
  Arg [2]    : (optional) string $logic_name
               the logic_name of the analysis of the features to obtain
  Example    : $fts = $a->_generic_fetch('WHERE contig_id in (1234, 1235)', 'Swall');
  Description: Performs a database fetch and returns feature objects in
               contig coordinates.
  Returntype : listref of Bio::EnsEMBL::SeqFeature in contig coordinates
  Exceptions : none
  Caller     : BaseFeatureAdaptor, ProxyDnaAlignFeatureAdaptor::_generic_fetch
 
Code:
click to view
protected Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::_get_starting_lr_index ( )

Undocumented method

Code:
click to view

Reimplemented in Bio::EnsEMBL::Compara::DBSQL::CAFETreeAdaptor, and Bio::EnsEMBL::Compara::DBSQL::GeneTreeAdaptor.

protected Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::_lr_table_name ( )

Undocumented method

Code:
click to view
public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::cache_add_object ( )

Undocumented method

Code:
click to view
public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::cache_fetch_by_id ( )

Undocumented method

Code:
click to view
public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::clear_cache ( )

Undocumented method

Code:
click to view
public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::columns ( )

Undocumented method

Code:
click to view

Reimplemented in Bio::EnsEMBL::Compara::DBSQL::CAFETreeAdaptor, Bio::EnsEMBL::Compara::DBSQL::GeneTreeAdaptor, Bio::EnsEMBL::Compara::DBSQL::GenomicAlignTreeAdaptor, and Bio::EnsEMBL::Compara::DBSQL::NCBITaxonAdaptor.

public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::create_instance_from_rowhash ( )

Undocumented method

Code:
click to view

Reimplemented in Bio::EnsEMBL::Compara::DBSQL::CAFETreeAdaptor, Bio::EnsEMBL::Compara::DBSQL::GeneTreeAdaptor, Bio::EnsEMBL::Compara::DBSQL::GenomicAlignTreeAdaptor, and Bio::EnsEMBL::Compara::DBSQL::NCBITaxonAdaptor.

public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::DESTROY ( )

Undocumented method

Code:
click to view
public Arrayref Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::fetch_all ( )
  Arg[1]     : -none-
  Example    : $all_trees = $proteintree_adaptor->fetch_all();
  Description: Fetches from the database all the nested sets.
  Returntype : arrayref of Bio::EnsEMBL::Compara::NestedSet
  Exceptions :
  Caller     :
 
Code:
click to view

Reimplemented from Bio::EnsEMBL::DBSQL::BaseAdaptor.

Reimplemented in Bio::EnsEMBL::Compara::DBSQL::CAFETreeAdaptor, and Bio::EnsEMBL::Compara::DBSQL::GeneTreeAdaptor.

public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::fetch_all_children_for_node ( )

Undocumented method

Code:
click to view

Reimplemented in Bio::EnsEMBL::Compara::DBSQL::CAFETreeAdaptor, and Bio::EnsEMBL::Compara::DBSQL::GenomicAlignTreeAdaptor.

public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::fetch_all_leaves_indexed ( )

Undocumented method

Code:
click to view
public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::fetch_all_roots ( )

Undocumented method

Code:
click to view

Reimplemented in Bio::EnsEMBL::Compara::DBSQL::GeneTreeAdaptor.

public Bio::EnsEMBL::Compara::NestedSet Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::fetch_first_shared_ancestor_indexed ( )
  Arg [1]    : Bio::EnsEMBL::Compara::NestedSet $node1
  Arg [2]    : Bio::EnsEMBL::Compara::NestedSet $node2
  Arg [n]    : Bio::EnsEMBL::Compara::NestedSet $node_n
  Example    : $lca = $nested_set_adaptor->fetch_first_shared_ancestor_indexed($node1, $node2);
  Description: Returns the first node of the tree that is an ancestor of all the nodes passed
               as arguments. There must be at least one argument, and all the nodes must share
               the same root
  Returntype : Bio::EnsEMBL::Compara::NestedSet
  Exceptions : thrown if the nodes don't share the same root_id
 
Code:
click to view
public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::fetch_node_by_node_id ( )

Undocumented method

Code:
click to view

Reimplemented in Bio::EnsEMBL::Compara::DBSQL::GenomicAlignTreeAdaptor.

public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::fetch_parent_for_node ( )

Undocumented method

Code:
click to view

Reimplemented in Bio::EnsEMBL::Compara::DBSQL::GenomicAlignTreeAdaptor, and Bio::EnsEMBL::Compara::DBSQL::NCBITaxonAdaptor.

public Bio::EnsEMBL::Compara::NestedSet Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::fetch_root_by_node ( )
  Arg [1]    : Bio::EnsEMBL::Compara::NestedSet $node
  Example    : $root = $nested_set_adaptor->fetch_root_by_node($node);
  Description: Returns the root of the tree for this node
               with links to all the intermediate nodes. Sister nodes
               are not included in the result. Use fetch_node_by_node_id()
               method to get the whole tree (loaded on demand)
  Returntype : Bio::EnsEMBL::Compara::NestedSet
  Exceptions : thrown if $node is not defined
  Status     : At-risk
  Caller     : $nested_set->root
 
Code:
click to view

Reimplemented in Bio::EnsEMBL::Compara::DBSQL::GenomicAlignTreeAdaptor.

public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::fetch_subroot_by_left_right_index ( )

Undocumented method

Code:
click to view
public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::fetch_subtree_under_node ( )

Undocumented method

Code:
click to view
public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::fetch_tree_at_node_id ( )

Undocumented method

Code:
click to view
public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::final_clause ( )

Undocumented method

Code:
click to view
public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::init_instance_from_rowhash ( )

Undocumented method

Code:
click to view

Reimplemented in Bio::EnsEMBL::Compara::DBSQL::CAFETreeAdaptor, Bio::EnsEMBL::Compara::DBSQL::GeneTreeAdaptor, Bio::EnsEMBL::Compara::DBSQL::GenomicAlignTreeAdaptor, and Bio::EnsEMBL::Compara::DBSQL::NCBITaxonAdaptor.

public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::left_join_clause ( )
public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::new ( )

Undocumented method

Code:
click to view

Reimplemented from Bio::EnsEMBL::DBSQL::BaseAdaptor.

public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::store ( )
  Arg [1]    :
  Example    :
  Description:
  Returntype :
  Exceptions :
  Caller     :
 
Code:
click to view

Reimplemented in Bio::EnsEMBL::Compara::DBSQL::CAFETreeAdaptor, Bio::EnsEMBL::Compara::DBSQL::GeneTreeAdaptor, and Bio::EnsEMBL::Compara::DBSQL::GenomicAlignTreeAdaptor.

public Nothing Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::sync_tree_leftright_index ( )
  Arg [1]    : Bio::EnsEMBL::Compara::NestedSet $root
  Arg [2]    : Boolean; indicates if you wish to use a fresh database 
               connection to perform any locking. If you are within an existing
               transaction this is a good idea to avoid locking the LR table
               for the duration of your transaction
  Example    : $nsa->sync_tree_leftright_index($root);
  Description: For the given root this method looks for left right index
               offset recorded in lr_index_offset for the configured
               table. The program locks on this table to reserve a batch
               of identifiers which are then used to left_right index
               the tree.
               The left right indexing is called by this method on your given
               tree root
  Returntype : Nothing
  Exceptions : Only raised from DBI problems
  Caller     : Public
 
Code:
click to view
public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::tables ( )

Undocumented method

Code:
click to view

Reimplemented in Bio::EnsEMBL::Compara::DBSQL::CAFETreeAdaptor, Bio::EnsEMBL::Compara::DBSQL::GeneTreeAdaptor, Bio::EnsEMBL::Compara::DBSQL::GenomicAlignTreeAdaptor, and Bio::EnsEMBL::Compara::DBSQL::NCBITaxonAdaptor.

public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::update ( )

Undocumented method

Code:
click to view

Reimplemented in Bio::EnsEMBL::Compara::DBSQL::NCBITaxonAdaptor.

public Bio::EnsEMBL::Compara::DBSQL::NestedSetAdaptor::update_subtree ( )

Undocumented method

Code:
click to view

The documentation for this class was generated from the following file: