public static void Annotate(AnnotatedVariant variant) { CoreAnnotationProvider.Annotate(variant); VariantIdProvider.Annotate(variant); AlleleFreqProvider.Annotate(variant); ClinicalAnnotationProvider.Annotate(variant); }
private async void AddIds() { while (await _idChannel.Reader.WaitToReadAsync()) { while (_idChannel.Reader.TryRead(out var variant)) { VariantIdProvider.Annotate(variant); } } }
private void AddIds() { while (true) { _idSemaphore.Wait(); if (_isComplete) { break; } VariantIdProvider.Annotate(_variant); _idDone.Release(); } }
private void AddIds() { while (true) { _idConsumer.Wait(); if (!_idQueue.TryDequeue(out var variant)) { if (_isCancelled) { break; } continue; } VariantIdProvider.Annotate(variant); _idProducer.Release(); } }
private void AddIds() { while (true) { _idSemaphore.Wait(); if (_isCancelled) { break; } foreach (var variant in _variants) { VariantIdProvider.Annotate(variant); } _idDone.Release(); } }