public static void Annotate(AnnotatedVariant variant) { CoreAnnotationProvider.Annotate(variant); VariantIdProvider.Annotate(variant); AlleleFreqProvider.Annotate(variant); ClinicalAnnotationProvider.Annotate(variant); }
private async void AddAlleleFreq() { while (await _alleleFreqChannel.Reader.WaitToReadAsync()) { while (_alleleFreqChannel.Reader.TryRead(out var variant)) { AlleleFreqProvider.Annotate(variant); } } }
private void AddAlleleFrequencies() { while (true) { _alleleFreqSemaphore.Wait(); if (_isComplete) { break; } AlleleFreqProvider.Annotate(_variant); _alleleFreqDone.Release(); } }
private void AddAlleleFreq() { while (true) { _alleleConsumer.Wait(); if (!_alleleFreqQueue.TryDequeue(out var variant)) { if (_isCancelled) { break; } continue; } AlleleFreqProvider.Annotate(variant); _alleleProducer.Release(); } }
private void AddAlleleFrequencies() { while (true) { _alleleFreqSemaphore.Wait(); if (_isCancelled) { break; } foreach (var variant in _variants) { AlleleFreqProvider.Annotate(variant); } _alleleFreqDone.Release(); } }