trait FeatureSet[T <: Feature] extends AnyRef
A data structure storing a set of Features.
Supports common operations on collections of genomic features, such as extracting overlappers of a given locus, and some common collection operations such as contains.
- T
The type of Features contained in the set
- Alphabetic
- By Inheritance
- FeatureSet
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
contains(t: T): Boolean
Returns a boolean value representing whether this set contains the given Feature.
Returns a boolean value representing whether this set contains the given Feature.
- t
Feature to look for
-
abstract
def
iterator: Iterator[T]
Returns an iterator over the entire set.
Returns an iterator over the entire set.
The returned iterator is not guaranteed to conform to any particular ordering.
- returns
Iterator over the set in no particular order
-
abstract
def
nearest(chr: String, start: Int, end: Int): Iterator[T]
Returns an iterator over the nearest Features to a genomic interval.
Returns an iterator over the nearest Features to a genomic interval.
If this set contains one or more Features whose span (including introns) overlaps the given interval, an iterator over those overlappers is returned.
Otherwise, all Features tied for the minimum distance are returned. Distance is defined as in Feature.distance.
Orientation is ignored.
The returned iterator is not guaranteed to conform to any particular ordering.
- chr
Chromosome name of query interval
- start
Zero-based inclusive start position of query interval
- end
Zero-based exclusive end position of query interval
- returns
Iterator over nearest Features in no particular order, or Iterator.empty if there are no Features on the chromosome
-
abstract
def
overlappers(feat: Feature): Iterator[T]
Returns an iterator over overlappers of a given Feature.
Returns an iterator over overlappers of a given Feature.
Overlappers are the Features contained in this set that overlap the given Feature as defined by Feature.overlaps.
The returned iterator is not guaranteed to conform to any particular ordering.
- feat
Query Feature
- returns
Iterator over overlappers of the given Feature in no particular order, or Iterator.empty if there are no overlappers
-
abstract
def
overlappers(chr: String, start: Int, end: Int, orientation: Orientation): Iterator[T]
Returns an iterator over overlappers of a genomic interval.
Returns an iterator over overlappers of a genomic interval.
Overlappers are the Features contained in this set that overlap the interval accounting for Orientation, as defined by Feature.overlaps.
The returned iterator is not guaranteed to conform to any particular ordering.
- chr
Chromosome name of query interval
- start
Zero-based inclusive start position of query interval
- end
Zero-based exclusive end position of query interval
- orientation
Orientation of query interval. Only overlappers with a compatible Orientation (as defined by Orientation.isCompatible) will be returned.
- returns
Iterator over overlappers in no particular order, or Iterator.empty if there are no overlappers
-
abstract
def
overlappersSpan(feat: Feature): Iterator[T]
Returns an iterator over Ts whose span overlaps that of a given Feature.
Returns an iterator over Ts whose span overlaps that of a given Feature.
Overlappers are the Features contained in this set whose span overlaps that of the given Feature as defined by Feature.overlapsSpan.
The returned iterator is not guaranteed to conform to any particular ordering.
- feat
Query Feature
- returns
Iterator over span overlappers of the given Feature in no particular order, or Iterator.empty if there are none
-
abstract
def
overlappersSpan(chr: String, start: Int, end: Int, orientation: Orientation): Iterator[T]
Returns an iterator over Ts whose span overlaps a genomic interval.
Returns an iterator over Ts whose span overlaps a genomic interval.
Overlappers are the Features contained in this set whose span overlaps the interval accounting for Orientation, as defined by Feature.overlapsSpan.
The returned iterator is not guaranteed to conform to any particular ordering.
- chr
Chromosome name of query interval
- start
Zero-based inclusive start position of query interval
- end
Zero-based exclusive end position of query interval
- orientation
Orientation of query interval. Only overlappers with a compatible Orientation (as defined by Orientation.isCompatible) will be returned.
- returns
Iterator over span overlappers in no particular order, or Iterator.empty if there are none
-
abstract
val
size: Long
The number of features contained in this set.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nearest(feat: Feature): Iterator[T]
Returns an iterator over the nearest Features to a given Feature.
Returns an iterator over the nearest Features to a given Feature.
If this set contains one or more Features whose span (including introns) overlaps the span (including introns) of the given Feature, an iterator over those overlappers is returned.
Otherwise, all Features tied for the minimum distance are returned. Distance is defined as in Feature.distance.
Orientation is ignored.
The returned iterator is not guaranteed to conform to any particular ordering.
- feat
Query Feature
- returns
Iterator over nearest Features in no particular order, or Iterator.empty if there are no Features on the chromosome
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )