public class ScaledPherogramDistortion extends java.lang.Object implements PherogramDistortion
PherogramArea
).Constructor and Description |
---|
ScaledPherogramDistortion(int size)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
GapPattern |
getGapPattern(int baseCallIndex)
A description of gaps in the pherogram in the area surrounding the specified base call.
|
double |
getHorizontalScale(int baseCallIndex)
Returns the scale (pixels per trace value) in the area surrounding the specified base call.
|
double |
getPaintCenterX(int baseCallIndex)
Returns the x coordinate relative to the left border of the pherogram where the base call with the specified
index shall be painted.
|
double |
getPaintStartX(int baseCallIndex)
Returns the x coordinate relative to the left border of the pherogram where the first trace position of the area associated
with the specified base call index shall be painted.
|
void |
setGapPattern(int baseCallIndex,
GapPattern pattern) |
void |
setHorizontalScale(int baseCallIndex,
double scale) |
void |
setPaintCenterX(int baseCallIndex,
double paintX) |
void |
setPaintStartX(int baseCallIndex,
double paintX) |
public ScaledPherogramDistortion(int size)
size
- the number of values to be stored (should be equal to the length of the associated pherogram)public void setHorizontalScale(int baseCallIndex, double scale)
public double getHorizontalScale(int baseCallIndex)
PherogramDistortion
getHorizontalScale
in interface PherogramDistortion
baseCallIndex
- the index of the base callpublic void setPaintStartX(int baseCallIndex, double paintX)
public double getPaintStartX(int baseCallIndex)
PherogramDistortion
getPaintStartX
in interface PherogramDistortion
baseCallIndex
- the index of the base call.public void setPaintCenterX(int baseCallIndex, double paintX)
public double getPaintCenterX(int baseCallIndex)
PherogramDistortion
getPaintCenterX
in interface PherogramDistortion
baseCallIndex
- the index of the base call.public void setGapPattern(int baseCallIndex, GapPattern pattern)
public GapPattern getGapPattern(int baseCallIndex)
PherogramDistortion
getGapPattern
in interface PherogramDistortion
baseCallIndex
- the index of the base callnull
if no gaps are present in the specified area