public class IntervalIndexCreator extends TribbleIndexCreator
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_FEATURE_COUNT |
properties| Constructor and Description |
|---|
IntervalIndexCreator(java.io.File inputFile) |
IntervalIndexCreator(java.io.File inputFile,
int featuresPerInterval) |
IntervalIndexCreator(java.nio.file.Path inputPath) |
IntervalIndexCreator(java.nio.file.Path inputPath,
int featuresPerInterval) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(Feature feature,
long filePosition)
Add a feature to the index
|
Index |
finalizeIndex(long finalFilePosition)
finalize the index; create a tree index given the feature list passed in so far
|
int |
getFeaturesPerInterval() |
addProperty, setIndexSequenceDictionarypublic IntervalIndexCreator(java.nio.file.Path inputPath,
int featuresPerInterval)
public IntervalIndexCreator(java.io.File inputFile,
int featuresPerInterval)
public IntervalIndexCreator(java.io.File inputFile)
public IntervalIndexCreator(java.nio.file.Path inputPath)
public void addFeature(Feature feature, long filePosition)
IndexCreatorfeature - the feature, of which start, end, and contig must be filled infilePosition - the current file position, at the beginning of the specified featurepublic Index finalizeIndex(long finalFilePosition)
finalFilePosition - the final file position, for indexes that have to close out with the final positionpublic int getFeaturesPerInterval()