public interface Predictor
| Modifier and Type | Method and Description |
|---|---|
String |
getModelPath(String fullModelPath)
Convenience method to extract the path where the model is located given a specific model file.
|
String |
getModelPrefix(String fullModelPath)
Returns the model prefix/label.
|
void |
loadModel(String modelPath,
String modelPrefix)
Load a model.
|
boolean |
modelIsLoaded()
Returns true when the model has been successfully loaded.
|
void |
predict(RandomAccessSequenceInterface genome,
String referenceId,
SampleCountInfo[] sampleCounts,
int referenceIndex,
int pos,
DiscoverVariantPositionData list,
int[] readerIdxs)
Predict if a site has a somatic variation.
|
String getModelPath(String fullModelPath)
fullModelPath - Points to a .bin model file.String getModelPrefix(String fullModelPath)
fullModelPath - Points to a .bin model file.void loadModel(String modelPath, String modelPrefix) throws IOException
modelPath - the path of the model.modelPrefix - the model prefix (e.g., bestscore, bestAUC, latest)IOExceptionboolean modelIsLoaded()
void predict(RandomAccessSequenceInterface genome, String referenceId, SampleCountInfo[] sampleCounts, int referenceIndex, int pos, DiscoverVariantPositionData list, int[] readerIdxs)
genome - Genome associated with the alignment.referenceId - Chromosome name.sampleCounts - Goby sampleCounts.referenceIndex - Chromosome index.pos - position on the reference/chromosome.list - list of individual bases observed at the site.readerIdxs - indices to use for prediction inside the sampleCounts array.Copyright © 2017 Campagne Laboratory. All rights reserved.