Package org.snpeff.interval
Class IntervalAndSubIntervals<T extends Marker>
java.lang.Object
org.snpeff.interval.Interval
org.snpeff.interval.Marker
org.snpeff.interval.IntervalAndSubIntervals<T>
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Interval>,Iterable<T>,TxtSerializable
- Direct Known Subclasses:
Gene,Transcript
Interval that contains sub intervals.
- Author:
- pcingola
- See Also:
-
Field Summary
Fields inherited from class org.snpeff.interval.Interval
chromosomeNameOri, end, id, parent, start, strandMinus -
Constructor Summary
ConstructorsConstructorDescriptionIntervalAndSubIntervals(Marker parent, int start, int end, boolean strandMinus, String id) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a subintervalvoidAdd all intervalsvoidAdd all markersApply a variant.clone()Perform a shallow clonebooleancontainsId(String id) Is 'id' in the subintervals?Obtain a subintervalprotected voidInvalidate sorted collectionsiterator()markers()A list of all markers in this transcriptintQuery all genomic regions that intersect 'marker'voidRemove a subintervalvoidreset()Remove all intervalsvoidserializeParse(MarkerSerializer markerSerializer) Parse a line from a serialized fileserializeSave(MarkerSerializer markerSerializer) Create a string to serialize to a filevoidsetStrandMinus(boolean strandMinus) voidshiftCoordinates(int shift) sorted()Return a collection of sub intervals sorted by natural orderReturn a collection of sub intervals sorted by start position (if strand is >= 0) or by reverse end position (if strand < 0)Return a collection of sub intervalsMethods inherited from class org.snpeff.interval.Marker
adjust, applyDel, applyDup, applyIns, applyMixed, codonTable, compareTo, compareToPos, distance, distanceBases, getParent, getType, idChain, idChain, idChain, includes, intersect, isAdjustIfParentDoesNotInclude, isDeferredAnalysis, isShowWarningIfParentDoesNotInclude, minus, query, readTxt, shouldApply, toString, union, variantEffect, variantEffectNonRefMethods inherited from class org.snpeff.interval.Interval
equals, findParent, getChromosome, getChromosomeName, getChromosomeNameOri, getChromosomeNum, getEnd, getGenome, getGenomeName, getId, getStart, getStrand, hashCode, intersects, intersects, intersects, intersects, intersectSize, isCircular, isSameChromo, isStrandMinus, isStrandPlus, isValid, setChromosomeNameOri, setEnd, setId, setParent, setStart, size, toStr, toStringAsciiArt, toStrPosMethods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IntervalAndSubIntervals
public IntervalAndSubIntervals() -
IntervalAndSubIntervals
-
-
Method Details
-
add
Add a subinterval -
addAll
Add all intervals -
addAll
Add all markers -
apply
Apply a variant. -
clone
-
cloneShallow
Description copied from class:MarkerPerform a shallow clone- Overrides:
cloneShallowin classMarker
-
containsId
Is 'id' in the subintervals? -
get
Obtain a subinterval -
invalidateSorted
protected void invalidateSorted()Invalidate sorted collections -
iterator
-
markers
A list of all markers in this transcript -
numChilds
public int numChilds() -
query
Query all genomic regions that intersect 'marker' -
remove
Remove a subinterval -
reset
public void reset()Remove all intervals -
serializeParse
Parse a line from a serialized file- Specified by:
serializeParsein interfaceTxtSerializable- Overrides:
serializeParsein classMarker
-
serializeSave
Create a string to serialize to a file- Specified by:
serializeSavein interfaceTxtSerializable- Overrides:
serializeSavein classMarker- Returns:
-
setStrandMinus
public void setStrandMinus(boolean strandMinus) - Overrides:
setStrandMinusin classInterval
-
shiftCoordinates
public void shiftCoordinates(int shift) - Overrides:
shiftCoordinatesin classInterval
-
sorted
Return a collection of sub intervals sorted by natural order -
sortedStrand
Return a collection of sub intervals sorted by start position (if strand is >= 0) or by reverse end position (if strand < 0) -
subIntervals
Return a collection of sub intervals
-