MutableIndexAbstractIndex, IntervalTreeIndex, LinearIndex, TabixIndexpublic interface Index
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
containsChromosome(String chr) |
|
boolean |
equalsIgnoreProperties(Object obj) |
Returns true if this and obj are 'effectively' equivalent indices.
|
List<Block> |
getBlocks(String chr,
int start,
int end) |
Query the index.
|
Map<String,String> |
getProperties() |
|
List<String> |
getSequenceNames() |
|
boolean |
isCurrentVersion() |
|
void |
write(LittleEndianOutputStream stream) |
all indexes are writable to disk
|
default void |
write(File idxFile) |
Writes the index into a file.
|
void |
write(Path indexPath) |
Writes the index into a path.
|
default void |
writeBasedOnFeatureFile(File featureFile) |
Write an appropriately named and located Index file based on the name and location of the featureFile.
|
void |
writeBasedOnFeaturePath(Path featurePath) |
Write an appropriately named and located Index file based on the name and location of the featureFile.
|
List<Block> getBlocks(String chr, int start, int end)
chr - the chromosomestart - the start positionend - the end positionIllegalArgumentException - of chr isn't part of this indexboolean isCurrentVersion()
List<String> getSequenceNames()
boolean containsChromosome(String chr)
chr - the chromosome (or contig) namevoid write(LittleEndianOutputStream stream) throws IOException
stream - the stream to write the index to. Caller must close after invocation.IOException - if the index is unable to write to the specified locationdefault void write(File idxFile) throws IOException
write(Path)idxFile - Where to write the index.IOException - if the index is unable to write to the specified filevoid write(Path indexPath) throws IOException
indexPath - Where to write the index.IOException - if the index is unable to write to the specified path.default void writeBasedOnFeatureFile(File featureFile) throws IOException
writeBasedOnFeaturePath(Path)featureFile - IOException - if featureFile is not a normal file.void writeBasedOnFeaturePath(Path featurePath) throws IOException
featurePath - IOException - if featureFile is not a normal file.Map<String,String> getProperties()
boolean equalsIgnoreProperties(Object obj)
obj -