|
ensembl-hive
2.7.0
|
Public Member Functions | |
| public Bio::EnsEMBL::Utils::Interval | new () |
| public Scalar | start () |
| public Scalar | end () |
| public Any | data () |
| public Boolean | spans_origin () |
| public Boolean | is_empty () |
| public Boolean | is_point () |
| public Boolean | contains () |
| public Boolean | intersects () |
| public Boolean | is_right_of () |
| public Boolean | is_left_of () |
A class representing an interval defined on a genomic region. Instances of this class can store arbitrarily defined data. If created with start > end, then it is assumed that this interval is on a circular chromosome spanning the origin.
Definition at line 41 of file Interval.pm.
| public Boolean Bio::EnsEMBL::Utils::Interval::contains | ( | ) |
Arg [1] : scalar, the point coordinate Description : Determines if the current instance contains the query point Returntype : boolean Exceptions : none Caller : general
Code:
| public Any Bio::EnsEMBL::Utils::Interval::data | ( | ) |
Arg [] : none Description : Returns the data associated with the region Returntype : Any Exceptions : none Caller : general
Code:
| public Scalar Bio::EnsEMBL::Utils::Interval::end | ( | ) |
Arg [] : none Description : Returns the end coordinate of the region Returntype : scalar Exceptions : none Caller : general
Code:
| public Boolean Bio::EnsEMBL::Utils::Interval::intersects | ( | ) |
Arg [1] : An instance of Bio::EnsEMBL::Utils::Interval Description : Determines if the the instance intersects the given interval Returntype : boolean Exceptions : none Caller : general
Code:
| public Boolean Bio::EnsEMBL::Utils::Interval::is_empty | ( | ) |
Arg [] : none Description : Returns whether or not the interval is empty Returntype : boolean Exceptions : none Caller : general
Code:
| public Boolean Bio::EnsEMBL::Utils::Interval::is_left_of | ( | ) |
Arg [1] : An instance of Bio::EnsEMBL::Utils::Interval or a scalar Description : Checks if this current interval is entirely to the left of a point or Interval. More formally, the method will return true, if for every point x from the current interval the inequality x < point holds, where point is either a single scalar, or point is the start of another Interval. If spans_origin is true for either this Interval or an Interval passed in, then this method returns false Returntype : boolean Exceptions : none Caller : general
Code:
| public Boolean Bio::EnsEMBL::Utils::Interval::is_point | ( | ) |
Arg [] : none Description : Determines if the current interval is a single point Returntype : boolean Exceptions : none Caller : general
Code:
| public Boolean Bio::EnsEMBL::Utils::Interval::is_right_of | ( | ) |
Arg [1] : An instance of Bio::EnsEMBL::Utils::Interval or a scalar Description : Checks if this current interval is entirely to the right of a point or Interval. More formally, the method will return true, if for every point x from the current interval the inequality x > point holds, where point is either a single scalar, or point is the end of another Interval. If spans_origin is true for either this Interval or an Interval passed in, then this method returns false. Returntype : boolean Exceptions : none Caller : general
Code:
| public Bio::EnsEMBL::Utils::Interval Bio::EnsEMBL::Utils::Interval::new | ( | ) |
Arg [1] : scalar $start
The start coordinate of the region
Arg [2] : scalar $end
The end coordinate of the region
Arg [3] : (optional) $data
The data associated with the interval, can be anything
Example :Description : Constructor. Creates a new instance Returntype : Bio::EnsEMBL::Utils::Interval Exceptions : Throws an exception if start and end are not defined. Caller : general
Code:
| public Boolean Bio::EnsEMBL::Utils::Interval::spans_origin | ( | ) |
Arg [] : none
Description : Returns whether this interval was created spanning zero
(more particularly: if the interval was instantiated with start > end)
Returntype : boolean
Exceptions : none
Caller : general
Code:
| public Scalar Bio::EnsEMBL::Utils::Interval::start | ( | ) |
Arg [] : none Description : Returns the start coordinate of the region Returntype : scalar Exceptions : none Caller : general
Code: