org.gersteinlab.act.io
Class WigFilesReader

java.lang.Object
  extended by org.gersteinlab.act.io.DataFilesReader
      extended by org.gersteinlab.act.io.WigFilesReader

public class WigFilesReader
extends DataFilesReader

        This class defines a reader of data files in WIG format. See
        http://genome.ucsc.edu/FAQ/FAQformat.html for definition.
        


Field Summary
protected  double doubleValue
          Double value of the last interval
protected  long intervalStart
          Starting position of the last interval, 0-based, included
protected  java.lang.String seg
          Segment of the last interval
protected  int span
          The span of each interval
protected  int step
          The step size of the intervals
static int STEP_FIXED
          Fixed step format
static int STEP_VARIABLE
          Variable step format
protected  int stepType
          The step type of intervals
 
Fields inherited from class org.gersteinlab.act.io.DataFilesReader
br
 
Constructor Summary
WigFilesReader(java.io.Reader rIn)
          Create a new reader with source data from an input reader.
 
Method Summary
 Interval readInterval()
          Read the next interval from the reader.
 
Methods inherited from class org.gersteinlab.act.io.DataFilesReader
close, countIntervals, getReader, readIntervals, readIntervals, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STEP_FIXED

public static final int STEP_FIXED
Fixed step format

See Also:
Constant Field Values

STEP_VARIABLE

public static final int STEP_VARIABLE
Variable step format

See Also:
Constant Field Values

seg

protected java.lang.String seg
Segment of the last interval


intervalStart

protected long intervalStart
Starting position of the last interval, 0-based, included


doubleValue

protected double doubleValue
Double value of the last interval


step

protected int step
The step size of the intervals


span

protected int span
The span of each interval


stepType

protected int stepType
The step type of intervals

Constructor Detail

WigFilesReader

public WigFilesReader(java.io.Reader rIn)
Create a new reader with source data from an input reader.

Parameters:
rIn - The input reader
Method Detail

readInterval

public Interval readInterval()
                      throws java.io.IOException
Read the next interval from the reader.

Specified by:
readInterval in class DataFilesReader
Returns:
The next interval
null if not more
Throws:
java.io.IOException