Package org.snpsift.annotate
Class VcfIndexDataChromo
java.lang.Object
org.snpsift.annotate.VcfIndexDataChromo
Represents a set of VCF entries stored in an (uncompressed) file
All entries belong to the same chromosome
- Author:
- pcingola
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVcfIndexDataChromo(org.snpeff.interval.Genome genome) VcfIndexDataChromo(org.snpeff.interval.Genome genome, String chromosome) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int start, int end, long fileIdx) Add [start, end] => filePoslongfileSize(int startIdx, int endIdx) File size between startIdx and endIdx inclusiveintgetEnd(int idx) longgetFilePosEnd(int idx) longgetFilePosStart(int idx) intgetStart(int idx) booleanintersects(int idx, int pos) Does interval at position 'idx' intersect positions 'pos'?booleanintersects(int idx, org.snpeff.interval.Marker marker) Does interval at position 'idx' intersect 'marker'?org.snpeff.interval.Markermarker(int idx) Create a marker form data at position 'idx'voidsetFilePosEnd(long filePosEnd) intsize()toString()
-
Field Details
-
INITIAL_CAPACITY
public static final int INITIAL_CAPACITY- See Also:
-
-
Constructor Details
-
VcfIndexDataChromo
public VcfIndexDataChromo(org.snpeff.interval.Genome genome) -
VcfIndexDataChromo
-
-
Method Details
-
add
public void add(int start, int end, long fileIdx) Add [start, end] => filePos -
fileSize
public long fileSize(int startIdx, int endIdx) File size between startIdx and endIdx inclusive -
getChromosome
-
getEnd
public int getEnd(int idx) -
getFilePosEnd
public long getFilePosEnd(int idx) -
getFilePosStart
public long getFilePosStart(int idx) -
getStart
public int getStart(int idx) -
intersects
public boolean intersects(int idx, int pos) Does interval at position 'idx' intersect positions 'pos'? -
intersects
public boolean intersects(int idx, org.snpeff.interval.Marker marker) Does interval at position 'idx' intersect 'marker'? -
marker
public org.snpeff.interval.Marker marker(int idx) Create a marker form data at position 'idx' -
setFilePosEnd
public void setFilePosEnd(long filePosEnd) -
size
public int size() -
toString
-