public class AlignmentSpan
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static AlignmentSpan |
UNPLACED_SPAN
A constant to represent a span of unmapped-unplaced reads.
|
| Constructor and Description |
|---|
AlignmentSpan(int start,
int span,
int mappedCount,
int unmappedCount)
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 |
getMappedCount() |
int |
getSpan() |
int |
getStart() |
int |
getUnmappedCount() |
int |
hashCode() |
public static final AlignmentSpan UNPLACED_SPAN
public AlignmentSpan(int start,
int span,
int mappedCount,
int unmappedCount)
start - minimum alignment start of the reads represented by this span, using a 1-based coordinate systemspan - 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 getStart()
public int getSpan()
public int getMappedCount()
public int getUnmappedCount()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object