-
- All Implemented Interfaces:
-
kotlin.Comparable
public interface WigSection implements Comparable<WigSection>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumWigSection.Type
-
Method Summary
Modifier and Type Method Description BooleanisEmpty()Sequence<ScoredInterval>query()Returns a list with all intervals in the section. abstract Sequence<ScoredInterval>query(Integer from, Integer to)Returns a intervals contained within a given semi-interval. abstract Sequence<WigSection>splice(Integer max)Splices a section into sub-section of size at most java.lang.Short.MAX_VALUE. IntegercompareTo(WigSection other)abstract StringgetChrom()Human-readable chromosome name, e.g. abstract IntegergetSpan()Interval width. abstract IntegergetStart()Start offset of the leftmost interval in the section. abstract IntegergetEnd()End offset of the rightmost interval in the section. abstract IntegergetSize()The total number of intervals in the section. -
-
Method Detail
-
query
Sequence<ScoredInterval> query()
Returns a list with all intervals in the section.
-
query
abstract Sequence<ScoredInterval> query(Integer from, Integer to)
Returns a intervals contained within a given semi-interval.
- Parameters:
from- inclusiveto- exclusive
-
splice
abstract Sequence<WigSection> splice(Integer max)
Splices a section into sub-section of size at most java.lang.Short.MAX_VALUE.
-
compareTo
Integer compareTo(WigSection other)
-
getEnd
abstract Integer getEnd()
End offset of the rightmost interval in the section. Note that we use semi-closed intervals, thus the returned value is not included on the track.
-
-
-
-