public abstract class Index
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buf |
protected Format |
format |
protected htsjdk.samtools.util.BlockCompressedInputStream |
is |
protected int |
mBc |
protected java.util.Map<java.lang.String,java.lang.Integer> |
mChr2tid |
protected int |
mEc |
protected java.util.Map<java.lang.Integer,java.lang.Long> |
minOffForChr |
protected int |
mMeta |
protected int |
mPreset |
protected int |
mSc |
protected java.lang.String[] |
mSeq |
protected int |
mSkip |
protected java.util.Map<java.lang.Integer,java.lang.String> |
mTid2chr |
Constructor and Description |
---|
Index(htsjdk.samtools.util.BlockCompressedInputStream is) |
Index(java.lang.String indexPath,
boolean useJDK) |
Modifier and Type | Method and Description |
---|---|
int |
chr2tid(java.lang.String chr)
return chromosome ID or -1 if it is unknown
|
java.util.Set<java.lang.String> |
getChromosomes()
return the chromosomes in that tabix file
|
abstract java.lang.String[] |
getColumnNames() |
Format |
getFormat() |
htsjdk.samtools.util.BlockCompressedInputStream |
getIs() |
java.util.Map<java.lang.String,java.lang.Integer> |
getmChr2tid() |
java.util.Map<java.lang.Integer,java.lang.Long> |
getMinOffForChr() |
java.lang.Long |
getMinOffForChr(int tid) |
int |
getmMeta() |
java.lang.String[] |
getmSeq() |
int |
getmSeqLen() |
int[] |
parseReg(java.lang.String reg)
Parse a region in the format of "chr1", "chr1:100" or "chr1:100-1000"
|
void |
read() |
protected abstract void |
readFormat() |
protected abstract void |
readIndex() |
protected abstract void |
readMagic() |
protected void |
readSeq() |
java.lang.String |
tid2chr(int tid) |
protected int mPreset
protected int mSc
protected int mBc
protected int mEc
protected int mMeta
protected java.lang.String[] mSeq
protected java.util.Map<java.lang.String,java.lang.Integer> mChr2tid
protected java.util.Map<java.lang.Integer,java.lang.String> mTid2chr
protected int mSkip
protected htsjdk.samtools.util.BlockCompressedInputStream is
protected java.util.Map<java.lang.Integer,java.lang.Long> minOffForChr
protected Format format
protected byte[] buf
public Index(java.lang.String indexPath, boolean useJDK)
public Index(htsjdk.samtools.util.BlockCompressedInputStream is)
public java.util.Map<java.lang.String,java.lang.Integer> getmChr2tid()
public void read() throws java.io.IOException
java.io.IOException
public Format getFormat()
protected abstract void readMagic() throws java.io.IOException
java.io.IOException
protected abstract void readFormat() throws java.io.IOException
java.io.IOException
protected void readSeq() throws java.io.IOException
java.io.IOException
protected abstract void readIndex() throws java.io.IOException
java.io.IOException
public int chr2tid(java.lang.String chr)
public java.lang.String tid2chr(int tid)
public java.util.Set<java.lang.String> getChromosomes()
public int[] parseReg(java.lang.String reg)
reg
- Region stringpublic int getmMeta()
public java.lang.Long getMinOffForChr(int tid)
public java.util.Map<java.lang.Integer,java.lang.Long> getMinOffForChr()
public java.lang.String[] getmSeq()
public int getmSeqLen()
public htsjdk.samtools.util.BlockCompressedInputStream getIs()
public abstract java.lang.String[] getColumnNames()