- Author
- engreitz Class for storing and oeprating on a set of annotations in memory Allows multiple identical annotations. Iterators, counting, etc. always consider the filters present in the AnnotationList. TODO: Add a different class that will dynamically read BED files, perhaps by using an indexing system TODO: Add a global extension factor TODO: Integrate with modified reader classes that can populate an AnnotationList from a file (this class should not be responsible for parsing or reading - only for storing and manipulating) TODO: Alternative (faster?) implementation: remove all annotations that don't pass filters so you don't have to test every annotation every time you iterate. In this implementation, addFilter would apply the filter to all annotations upon addition, removing those that do not pass.
- Parameters
-
| umms.core.annotation.AnnotationList< T extends Annotation >.AnnotationList |
( |
| ) |
|
Initializing with a coordinate space allows for some additional filtering and sanity checks
- Parameters
-
| umms.core.annotation.AnnotationList< T extends Annotation >.AnnotationList |
( |
CoordinateSpace |
cs, |
|
|
Collection<?extends T > |
annotations |
|
) |
| |
| void umms.core.annotation.AnnotationList< T extends Annotation >.add |
( |
T |
annotation | ) |
|
Add an annotation
- Parameters
-
| void umms.core.annotation.AnnotationList< T extends Annotation >.addAll |
( |
Iterable<?extends T > |
annotations | ) |
|
Add a collection of annotations
- Parameters
-
Add another AnnotationList. Duplicates allowed
- Parameters
-
| void umms.core.annotation.AnnotationList< T extends Annotation >.addFilter |
( |
Predicate< T > |
filter | ) |
|
| void umms.core.annotation.AnnotationList< T extends Annotation >.addFilters |
( |
Collection< Predicate< T >> |
filters | ) |
|
| void umms.core.annotation.AnnotationList< T extends Annotation >.collapse |
( |
| ) |
|
Collapse overlapping annotations.
| int umms.core.annotation.AnnotationList< T extends Annotation >.getBasesCovered |
( |
Annotation |
region, |
|
|
boolean |
fullyContained |
|
) |
| |
- Parameters
-
- Returns
- Closest annotation in the set, or null if there are no annotations on the same chromosome
| T umms.core.annotation.AnnotationList< T extends Annotation >.getClosest |
( |
final Annotation |
query, |
|
|
boolean |
nonOverlapping |
|
) |
| |
- Parameters
-
- Returns
- Closest (non-overlapping) annotation in the set, or null if there are no matches on the same chromosome
| T umms.core.annotation.AnnotationList< T extends Annotation >.getClosestDownstream |
( |
final Annotation |
query | ) |
|
Returns the closest non-overlapping annotation 3-prime of the query, considering strand.
- Parameters
-
- Returns
| T umms.core.annotation.AnnotationList< T extends Annotation >.getClosestNonOverlapping |
( |
final Annotation |
query | ) |
|
- Parameters
-
- Returns
- Closest non-overlapping annotation in the set, or null if there are no non-overlapping annotations on the same chromosome
| T umms.core.annotation.AnnotationList< T extends Annotation >.getClosestUpstream |
( |
final Annotation |
query | ) |
|
Returns the closest non-overlapping annotation 5-prime of the query, considering strand.
- Parameters
-
- Returns
| double umms.core.annotation.AnnotationList< T extends Annotation >.getCount |
( |
Annotation |
region, |
|
|
boolean |
fullyContained |
|
) |
| |
| Integer umms.core.annotation.AnnotationList< T extends Annotation >.getDistanceToClosest |
( |
final Annotation |
query | ) |
|
- Parameters
-
- Returns
- distance in coordinate space between the query and the closest element in the set, or null if there are no others on the same chromosome
| double umms.core.annotation.AnnotationList< T extends Annotation >.getGlobalCount |
( |
| ) |
|
| int umms.core.annotation.AnnotationList< T extends Annotation >.getNumOverlappingAnnotations |
( |
Annotation |
region | ) |
|
- Parameters
-
- Returns
- AnnotationList containing all annotations that overlap an annotation in other.
- Parameters
-
- Returns
- AnnotationList containing all annotations that overlap (or contained by) an annotation in other.
| CloseableIterator<T> umms.core.annotation.AnnotationList< T extends Annotation >.getOverlappingAnnotations |
( |
Annotation |
region, |
|
|
boolean |
fullyContained |
|
) |
| |
| CloseableIterator<T> umms.core.annotation.AnnotationList< T extends Annotation >.getPermutedAnnotations |
( |
Annotation |
region | ) |
|
| double umms.core.annotation.AnnotationList< T extends Annotation >.getRefSequenceLambda |
( |
String |
refname | ) |
|
| boolean umms.core.annotation.AnnotationList< T extends Annotation >.hasAnnotationThatContains |
( |
Annotation |
region | ) |
|
- Parameters
-
- Returns
- true if this has any Annotations that fully contain region
| boolean umms.core.annotation.AnnotationList< T extends Annotation >.hasAnnotationThatOverlaps |
( |
Annotation |
region | ) |
|
- Parameters
-
- Returns
- true if this has any Annotations that overlap region
Returns the intersection of this AnnotationList with another. Behaves like bedIntersect Different than getOverlappers
- Parameters
-
- Returns
| CloseableIterator<T> umms.core.annotation.AnnotationList< T extends Annotation >.iterator |
( |
| ) |
|
Returns a new AnnotationList that does not contain any annotations that overlap annotations in other
- Parameters
-
- Returns
| void umms.core.annotation.AnnotationList< T extends Annotation >.removeAnnotation |
( |
T |
annotation | ) |
|
| int umms.core.annotation.AnnotationList< T extends Annotation >.size |
( |
| ) |
|
| List<T> umms.core.annotation.AnnotationList< T extends Annotation >.toList |
( |
| ) |
|
- Returns
- A list of all annotations passing the filter
| TreeMap<String, IntervalTree<T> > umms.core.annotation.AnnotationList< T extends Annotation >.annotations = new TreeMap<String, IntervalTree<T>>() |
|
protected |
| boolean umms.core.annotation.AnnotationList< T extends Annotation >.ENFORCE_REFERENCE = false |
|
static |
The documentation for this class was generated from the following file: