public class TabixReader extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
TabixReader.Iterator |
| Modifier and Type | Field and Description |
|---|---|
HashMap<String,Integer> |
mChr2tid |
String |
mFn |
net.sf.samtools.util.BlockCompressedInputStream |
mFp |
| Constructor and Description |
|---|
TabixReader(String fn)
The constructor
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
parseReg(String reg)
Parse a region in the format of "chr1", "chr1:100" or "chr1:100-1000"
|
TabixReader.Iterator |
query(int tid,
int beg,
int end) |
TabixReader.Iterator |
query(String reg) |
void |
readIndex()
Read the Tabix index from the default file.
|
void |
readIndex(File fp)
Read the Tabix index from a file
|
static int |
readInt(InputStream is) |
String |
readLine()
Read one line from the data file.
|
static String |
readLine(InputStream is) |
static long |
readLong(InputStream is) |
public String mFn
public net.sf.samtools.util.BlockCompressedInputStream mFp
public TabixReader(String fn) throws IOException
fn - File name of the data fileIOExceptionpublic static int readInt(InputStream is) throws IOException
IOExceptionpublic static long readLong(InputStream is) throws IOException
IOExceptionpublic static String readLine(InputStream is) throws IOException
IOExceptionpublic void readIndex(File fp) throws IOException
fp - File pointerIOExceptionpublic void readIndex()
throws IOException
IOExceptionpublic String readLine() throws IOException
IOExceptionpublic int[] parseReg(String reg)
reg - Region stringpublic TabixReader.Iterator query(int tid, int beg, int end)
public TabixReader.Iterator query(String reg)
Copyright © 2015. All Rights Reserved.