Exemple #1
0
 public static void Annotate(AnnotatedVariant variant)
 {
     CoreAnnotationProvider.Annotate(variant);
     VariantIdProvider.Annotate(variant);
     AlleleFreqProvider.Annotate(variant);
     ClinicalAnnotationProvider.Annotate(variant);
 }
Exemple #2
0
 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();
 }
Exemple #4
0
 private void CoreAnnotate()
 {
     while (true)
     {
         _coreSemaphore.Wait();
         if (_isComplete)
         {
             break;
         }
         CoreAnnotationProvider.Annotate(_variant);
         _coreDone.Release();
     }
 }
Exemple #5
0
 private void CoreAnnotate()
 {
     while (true)
     {
         _coreConsumer.Wait();
         if (!_coreQueue.TryDequeue(out var variant))
         {
             if (_isCancelled)
             {
                 break;
             }
             continue;
         }
         CoreAnnotationProvider.Annotate(variant);
         _coreProducer.Release();
     }
 }
Exemple #6
0
        private void CoreAnnotate()
        {
            while (true)
            {
                _coreSemaphore.Wait();
                if (_isCancelled)
                {
                    break;
                }
                foreach (var variant in _variants)
                {
                    CoreAnnotationProvider.Annotate(variant);
                }

                _coreDone.Release();
            }
        }