public class ReferenceContext extends java.lang.Object implements java.lang.Comparable<ReferenceContext>
UNMAPPED_UNPLACED_ID/ReferenceContextType.UNMAPPED_UNPLACED_TYPE
which indicates an unmapped/unplaced context, and
MULTIPLE_REFERENCE_ID/ReferenceContextType.MULTIPLE_REFERENCE_TYPE)
which indicates a multiple reference context.| Modifier and Type | Field and Description |
|---|---|
static ReferenceContext |
MULTIPLE_REFERENCE_CONTEXT |
static int |
MULTIPLE_REFERENCE_ID |
static int |
UNINITIALIZED_REFERENCE_ID |
static ReferenceContext |
UNMAPPED_UNPLACED_CONTEXT |
static int |
UNMAPPED_UNPLACED_ID |
| Constructor and Description |
|---|
ReferenceContext(int referenceContextID)
Create a ReferenceContext from a value that is either a valid sequence ID, or a reference context
sentinel value:
0 or greater for single reference
-1 for unmapped-unplaced
-2 for multiple reference
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ReferenceContext o) |
boolean |
equals(java.lang.Object o) |
int |
getReferenceContextID()
Get the ReferenceContext sequence ID, or, for unmapped or multiple context, a sentinel value suitable
for serialization:
0 or greater for single reference
-1 for unmapped
-2 for multiple reference
|
int |
getReferenceSequenceID()
Get the valid reference sequence ID.
|
ReferenceContextType |
getType()
Get the ReferenceContext type: SINGLE_REFERENCE_TYPE, UNMAPPED_UNPLACED_TYPE, or MULTIPLE_REFERENCE_TYPE
|
int |
hashCode() |
boolean |
isMappedSingleRef()
Determine if this ReferenceContext represents a single reference.
|
boolean |
isMultiRef()
Determine if this ReferenceContext represents:
- reads placed on multiple references
- or a combination of placed and unplaced reads?
|
boolean |
isUnmappedUnplaced()
Determine if this ReferenceContext represents unmapped-unplaced ?
|
java.lang.String |
toString() |
public static final int UNMAPPED_UNPLACED_ID
public static final int MULTIPLE_REFERENCE_ID
public static final int UNINITIALIZED_REFERENCE_ID
public static final ReferenceContext MULTIPLE_REFERENCE_CONTEXT
public static final ReferenceContext UNMAPPED_UNPLACED_CONTEXT
public ReferenceContext(int referenceContextID)
referenceContextID - the sequence ID or sentinel value for constructing this ReferenceContextpublic ReferenceContextType getType()
ReferenceContextType enumpublic int getReferenceContextID()
public int getReferenceSequenceID()
getReferenceContextID().CRAMException - if this is not a single-ref reference contextpublic boolean isUnmappedUnplaced()
public boolean isMultiRef()
public boolean isMappedSingleRef()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(ReferenceContext o)
compareTo in interface java.lang.Comparable<ReferenceContext>public java.lang.String toString()
toString in class java.lang.Object