|
ensembl-hive
2.7.0
|
Public Member Functions | |
| public Bio::EnsEMBL::Utils::Tree::Interval::Immutable | new () |
| public Bio::EnsEMBL::Utils::Tree::Interval::Immutable::Node | root () |
| public An | query () |
| protected | _query_point () |
| protected | _range_query_left () |
| protected | _range_query_right () |
| public | in_order_traversal () |
| protected | _in_order_traversal () |
| protected | _divide_intervals () |
| protected | _center () |
| protected | _center_sorted () |
| public | sort_by_begin () |
| public | uniq () |
An implementation of an immutable interval tree. Immutable means the tree is initialised with a fixed set of intervals at creation time. Intervals cannot be added to or removed from the tree during its life cycle. Implementation heavily inspired by https://github.com/tylerkahn/intervaltree-python This implementation does not support Intervals having a start > end - i.e. intervals spanning the origin of a circular chromosome.
Definition at line 47 of file Immutable.pm.
| protected Bio::EnsEMBL::Utils::Tree::Interval::Immutable::_center | ( | ) |
Undocumented method
Code:
| protected Bio::EnsEMBL::Utils::Tree::Interval::Immutable::_center_sorted | ( | ) |
Undocumented method
Code:
| protected Bio::EnsEMBL::Utils::Tree::Interval::Immutable::_divide_intervals | ( | ) |
Undocumented method
Code:
| protected Bio::EnsEMBL::Utils::Tree::Interval::Immutable::_in_order_traversal | ( | ) |
Undocumented method
Code:
| protected Bio::EnsEMBL::Utils::Tree::Interval::Immutable::_query_point | ( | ) |
Undocumented method
Code:
| protected Bio::EnsEMBL::Utils::Tree::Interval::Immutable::_range_query_left | ( | ) |
Undocumented method
Code:
| protected Bio::EnsEMBL::Utils::Tree::Interval::Immutable::_range_query_right | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Tree::Interval::Immutable::in_order_traversal | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Tree::Interval::Immutable Bio::EnsEMBL::Utils::Tree::Interval::Immutable::new | ( | ) |
Arg [1] : Arrayref of Bio::EnsEMBL::Utils::Interval instances Example :
Description : Constructor. Creates a new immutable tree instance Returntype : Bio::EnsEMBL::Utils::Tree::Interval::Immutable Exceptions : none Caller : general
Code:
| public An Bio::EnsEMBL::Utils::Tree::Interval::Immutable::query | ( | ) |
Arg [1] : scalar, $start
Where the query interval begins
Arg [2] : (optional) scalar, $end
Where the query interval ends
Example : Description : Query the tree if its intervals overlap the interval whose start
and end points are specified by the argument list.
If end is not specified, it is assumed to be the same as start
so effectively making a point query.
Returntype : An arrayref of Bio::EnsEMBL::Utils::Interval instances
Exceptions : none
Caller : general
Code:
| public Bio::EnsEMBL::Utils::Tree::Interval::Immutable::Node Bio::EnsEMBL::Utils::Tree::Interval::Immutable::root | ( | ) |
Arg [] : none Example :
Description : Return the tree top node Returntype : Bio::EnsEMBL::Utils::Tree::Interval::Immutable::Node Exceptions : none Caller : general
Code:
| public Bio::EnsEMBL::Utils::Tree::Interval::Immutable::sort_by_begin | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::Tree::Interval::Immutable::uniq | ( | ) |
Undocumented method
Code: