public void Load(IChromosome chromosome) { if (_currentChromosome.Index == chromosome.Index) { return; } SequenceReader.GetCompressedSequence(chromosome); SiftPredictions = SiftReader.GetPredictions(chromosome.Index); PolyPhenPredictions = PolyPhenReader.GetPredictions(chromosome.Index); _currentChromosome = chromosome; }
private static (Prediction[] Predictions, int Offset) CombinePredictions(ILogger logger, IChromosome chromosome, string description, PredictionCacheReader reader, PredictionCacheReader reader2) { logger.Write($"- load {description} predictions... "); var predictions = reader.GetPredictions(chromosome.Index); var predictions2 = reader2.GetPredictions(chromosome.Index); logger.WriteLine("finished."); var combinedPredictions = CombinePredictions(logger, description, predictions, predictions2); return(combinedPredictions, predictions.Length); }