public static void Annotate(AnnotatedVariant variant) { CoreAnnotationProvider.Annotate(variant); VariantIdProvider.Annotate(variant); AlleleFreqProvider.Annotate(variant); ClinicalAnnotationProvider.Annotate(variant); }
private async void CoreAnnotation() { while (await _coreChannel.Reader.WaitToReadAsync()) { while (_coreChannel.Reader.TryRead(out var variant)) { CoreAnnotationProvider.Annotate(variant); } } }
private async void CoreAnnotation() { while (await _coreChannel.Reader.WaitToReadAsync()) { while (_coreChannel.Reader.TryRead(out var variant)) { CoreAnnotationProvider.Annotate(variant); //await _saChannel.Writer.WriteAsync(variant); } } //_saChannel.Writer.Complete(); }
private void CoreAnnotate() { while (true) { _coreSemaphore.Wait(); if (_isComplete) { break; } CoreAnnotationProvider.Annotate(_variant); _coreDone.Release(); } }
private void CoreAnnotate() { while (true) { _coreConsumer.Wait(); if (!_coreQueue.TryDequeue(out var variant)) { if (_isCancelled) { break; } continue; } CoreAnnotationProvider.Annotate(variant); _coreProducer.Release(); } }
private void CoreAnnotate() { while (true) { _coreSemaphore.Wait(); if (_isCancelled) { break; } foreach (var variant in _variants) { CoreAnnotationProvider.Annotate(variant); } _coreDone.Release(); } }