public final class ActivityProfileState
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ActivityProfileState.Type
The type of the value returned by
getResultValue() |
Constructor and Description |
---|
ActivityProfileState(SimpleInterval loc,
double activeProb)
Create a new ActivityProfileState at loc with probability of being active of activeProb
|
ActivityProfileState(SimpleInterval loc,
double activeProb,
ActivityProfileState.Type resultState,
java.lang.Number resultValue)
Create a new ActivityProfileState at loc with probability of being active of activeProb that maintains some
information about the result state and value
The only state value in use is HIGH_QUALITY_SOFT_CLIPS, and here the value is interpreted as the number
of bp affected by the soft clips.
|
Modifier and Type | Method and Description |
---|---|
SimpleInterval |
getLoc()
Get the locus associated with the ActivityProfileState
|
int |
getOffset(htsjdk.samtools.util.Locatable regionStartLoc)
The offset of state w.r.t.
|
ActivityProfileState.Type |
getResultState() |
java.lang.Number |
getResultValue() |
double |
isActiveProb() |
void |
setIsActiveProb(double activeProb)
Set the probability that this site is active.
|
java.lang.String |
toString() |
public ActivityProfileState(SimpleInterval loc, double activeProb)
loc
- the position of the result profile (for debugging purposes)activeProb
- the probability of being active (between 0 and 1)public ActivityProfileState(SimpleInterval loc, double activeProb, ActivityProfileState.Type resultState, java.lang.Number resultValue)
loc
- the position of the result profile (for debugging purposes)activeProb
- the probability of being active (between 0 and 1)public double isActiveProb()
public void setIsActiveProb(double activeProb)
BandPassActivityProfile
can sometimes generate probabilities that
slightly exceed 1.0 when moving probability mass around. We intend to fix this by
capping at 1.0, but first we must evaluate the effects of capping on the HaplotypeCaller.activeProb
- probability (should be between 0.0 and 1.0) that the site is activepublic ActivityProfileState.Type getResultState()
getResultValue()
public java.lang.Number getResultValue()
getResultState()
. If getResultState()
is HIGH_QUALITY_SOFT_CLIPS,
this is the number of bp affected by the soft clipspublic int getOffset(htsjdk.samtools.util.Locatable regionStartLoc)
regionStartLoc
- the start of the region, as a Locatablepublic SimpleInterval getLoc()
public java.lang.String toString()
toString
in class java.lang.Object