edu.unc.csbio.data
Class Read

java.lang.Object
  extended by edu.unc.csbio.data.Read

public class Read
extends java.lang.Object

The class for read information, including sequence string and the offset

Version:
0.1
Author:
Shunping Huang , Jack Wang

Field Summary
 int length
          The length of the read
 int offset
          The offset of a read in a segment sequence coordinate
 char[] sequence
          The read represented as a char string
 
Constructor Summary
Read(int _off, java.lang.String _seq)
          A constructor for Read object
 
Method Summary
 java.lang.String toString()
          A method to get read sequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

offset

public final int offset
The offset of a read in a segment sequence coordinate


length

public final int length
The length of the read


sequence

public final char[] sequence
The read represented as a char string

Constructor Detail

Read

public Read(int _off,
            java.lang.String _seq)
A constructor for Read object

Parameters:
_off - the offset of a read in a segment sequence coordinate
_seq - the read sequence
Method Detail

toString

public java.lang.String toString()
A method to get read sequence

Overrides:
toString in class java.lang.Object
Returns:
the read sequence as a string
See Also:
Object.toString()