public class WiggleWindow extends Object
| Constructor and Description |
|---|
WiggleWindow(PrintWriter writer,
int windowSize,
int maxDataSize)
Create a new WiggleWindow with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addData(int position,
int length,
int value)
Add data to the output.
|
void |
finish()
Finish writing the data.
|
int |
getMaxDataSize()
Get the max data size.
|
void |
reset()
Reset for whole new run, ie, a new chromosome.
|
void |
setMaxDataSize(int maxDataSize)
Set the max data size.
|
public WiggleWindow(PrintWriter writer, int windowSize, int maxDataSize)
writer - The writer to output wiggle data towindowSize - The window size to usemaxDataSize - The maximum data size, will not create a window with this value or largerpublic void addData(int position,
int length,
int value)
position - the starting position for the datalength - the length of the data with the given valuevalue - the value of the datapublic void finish()
addData(int, int, int)
for all of the data to finish writing the output.public void reset()
public int getMaxDataSize()
public void setMaxDataSize(int maxDataSize)
maxDataSize - the max data sizeCopyright © 2018 Campagne Laboratory. All rights reserved.