tnetwork.utils.Intervals.union

Intervals.union(other_Intervals)[source]

Union with another Intervals

Return the union between the current interval and the one provided as parameter, i.e. a new interval containing all sub-intervals of both. (if they overlap, it is handled)

Parameters:intervals – intervals provided as a Intervals object
Returns:a new Intervals object