edu.unc.csbio.util
Class FaReader

java.lang.Object
  extended by edu.unc.csbio.util.FaReader

public class FaReader
extends java.lang.Object

this class is for reading data from a fasta file with provided starting and end position

Version:
0.1
Author:
Shunping Huang , Jack Wang

Constructor Summary
FaReader()
           
 
Method Summary
static java.lang.String getData(java.lang.String filename, int start, int end)
          this method is for getting data within start and end position
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaReader

public FaReader()
Method Detail

getData

public static java.lang.String getData(java.lang.String filename,
                                       int start,
                                       int end)
                                throws java.io.IOException
this method is for getting data within start and end position

Parameters:
filename - file name of fasta file
start - start position
end - end position
Returns:
data within start and end position, represented as a string
Throws:
java.io.IOException - if an input or output exception occurred