public class AlignmentSpan
extends java.lang.Object
Constructor and Description |
---|
AlignmentSpan(AlignmentContext alignmentContext,
int mappedCount,
int unmappedCount,
int unmappedUnplacedCount)
This does not retain the alignmentContext referenceContext state (its just a shorthand for passing
the rest of the alignmentContext values in).
|
AlignmentSpan(int alignmentStart,
int alignmentSpan,
int mappedCount,
int unmappedCount,
int unmappedUnplacedCount)
Create a new span with a multiple reads in it.
|
Modifier and Type | Method and Description |
---|---|
static AlignmentSpan |
combine(AlignmentSpan a,
AlignmentSpan b)
Combine two AlignmentSpans
|
boolean |
equals(java.lang.Object o) |
int |
getAlignmentSpan() |
int |
getAlignmentStart() |
int |
getMappedCount() |
int |
getUnmappedCount() |
int |
getUnmappedUnplacedCount() |
int |
hashCode() |
public AlignmentSpan(AlignmentContext alignmentContext, int mappedCount, int unmappedCount, int unmappedUnplacedCount)
alignmentContext
- mappedCount
- unmappedCount
- unmappedUnplacedCount
- public AlignmentSpan(int alignmentStart, int alignmentSpan, int mappedCount, int unmappedCount, int unmappedUnplacedCount)
alignmentStart
- minimum alignment start of the reads represented by this span, using a 1-based coordinate systemalignmentSpan
- span from minimum alignment start to maximum alignment end of the reads represented by this span
span = max(end) - min(start) + 1mappedCount
- number of mapped reads in the spanunmappedCount
- number of unmapped reads in the spanpublic static AlignmentSpan combine(AlignmentSpan a, AlignmentSpan b)
a
- the first AlignmentSpan to combineb
- the second AlignmentSpan to combinepublic int getAlignmentStart()
public int getAlignmentSpan()
public int getMappedCount()
public int getUnmappedCount()
public int getUnmappedUnplacedCount()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object