public class SimpleAllele extends java.lang.Object implements Allele
Allele which includes a byte[] of the bases in the allele or the symbolic name.
This has been made public as a base for classes which need to subclass Allele.
Most users should create alleles using Allele.create(byte[]) instead of interacting with this class directly.ALT_A, ALT_C, ALT_G, ALT_N, ALT_T, BREAKEND_EXTENDING_LEFT, BREAKEND_EXTENDING_RIGHT, NO_CALL, NO_CALL_STRING, NON_REF_ALLELE, NON_REF_STRING, REF_A, REF_C, REF_G, REF_N, REF_T, SINGLE_BREAKEND_INDICATOR, SPAN_DEL, SPAN_DEL_STRING, SV_SIMPLE_CNV, SV_SIMPLE_DEL, SV_SIMPLE_DUP, SV_SIMPLE_INS, SV_SIMPLE_INV, SYMBOLIC_ALLELE_END, SYMBOLIC_ALLELE_START, UNSPECIFIED_ALTERNATE_ALLELE, UNSPECIFIED_ALTERNATE_ALLELE_STRING| Modifier | Constructor and Description |
|---|---|
protected |
SimpleAllele(byte[] bases,
boolean isRef) |
protected |
SimpleAllele(SimpleAllele allele,
boolean ignoreRefState)
Creates a new allele based on the provided one.
|
protected |
SimpleAllele(java.lang.String bases,
boolean isRef) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
basesMatch(Allele test) |
boolean |
basesMatch(byte[] test) |
boolean |
basesMatch(java.lang.String test) |
int |
compareTo(Allele other) |
boolean |
equals(Allele other,
boolean ignoreRefState)
Returns true if this and other are equal.
|
boolean |
equals(java.lang.Object other) |
byte[] |
getBases()
Return the DNA bases segregating in this allele.
|
java.lang.String |
getBaseString()
Return the DNA bases segregating in this allele in String format.
|
byte[] |
getDisplayBases()
Same as #getDisplayString() but returns the result as byte[].
|
java.lang.String |
getDisplayString()
Return the printed representation of this allele.
|
int |
hashCode() |
boolean |
isBreakpoint() |
boolean |
isCalled() |
boolean |
isNoCall() |
boolean |
isNonRefAllele() |
boolean |
isNonReference() |
boolean |
isPrefixOf(Allele other) |
boolean |
isReference() |
boolean |
isSingleBreakend() |
boolean |
isSymbolic() |
int |
length() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitacceptableAlleleBases, acceptableAlleleBases, acceptableAlleleBases, acceptableAlleleBases, create, create, create, create, create, create, create, extend, oneIsPrefixOfOther, wouldBeBreakpoint, wouldBeNoCallAllele, wouldBeNullAllele, wouldBeSingleBreakend, wouldBeStarAllele, wouldBeSymbolicAlleleprotected SimpleAllele(byte[] bases,
boolean isRef)
protected SimpleAllele(java.lang.String bases,
boolean isRef)
protected SimpleAllele(SimpleAllele allele, boolean ignoreRefState)
allele - the allele from which to copy the basesignoreRefState - should we ignore the reference state of the input allele and use the default ref state?public boolean isPrefixOf(Allele other)
isPrefixOf in interface Allelepublic boolean isNoCall()
public boolean isReference()
isReference in interface Allelepublic boolean isNonReference()
isNonReference in interface Allelepublic boolean isSymbolic()
isSymbolic in interface Allelepublic boolean isBreakpoint()
isBreakpoint in interface Allelepublic boolean isSingleBreakend()
isSingleBreakend in interface Allelepublic java.lang.String toString()
public byte[] getBases()
public java.lang.String getBaseString()
getBaseString in interface Allelepublic java.lang.String getDisplayString()
getDisplayString in interface Allelepublic byte[] getDisplayBases()
getDisplayBases in interface Allelepublic boolean equals(java.lang.Object other)
public int hashCode()
public boolean equals(Allele other, boolean ignoreRefState)
public boolean basesMatch(byte[] test)
basesMatch in interface Alleletest - bases to test againstpublic boolean basesMatch(java.lang.String test)
basesMatch in interface Alleletest - bases to test againstpublic boolean basesMatch(Allele test)
basesMatch in interface Alleletest - allele to test againstpublic int length()
public int compareTo(Allele other)
compareTo in interface java.lang.Comparable<Allele>public boolean isNonRefAllele()
isNonRefAllele in interface Allele<NON_REF> or <*>