Пример #1
0
 public static void Annotate(AnnotatedVariant variant)
 {
     CoreAnnotationProvider.Annotate(variant);
     VariantIdProvider.Annotate(variant);
     AlleleFreqProvider.Annotate(variant);
     ClinicalAnnotationProvider.Annotate(variant);
 }
Пример #2
0
 private async void AddClinical()
 {
     while (await _clinicalChannel.Reader.WaitToReadAsync())
     {
         while (_clinicalChannel.Reader.TryRead(out var variant))
         {
             ClinicalAnnotationProvider.Annotate(variant);
         }
     }
 }
Пример #3
0
 private void AddClinicalAnno()
 {
     while (true)
     {
         _clinicalSemaphore.Wait();
         if (_isComplete)
         {
             break;
         }
         ClinicalAnnotationProvider.Annotate(_variant);
         _clinicalDone.Release();
     }
 }
Пример #4
0
 private void AddClinical()
 {
     while (true)
     {
         _clinicalConsumer.Wait();
         if (!_clinicalQueue.TryDequeue(out var variant))
         {
             if (_isCancelled)
             {
                 break;
             }
             continue;
         }
         ClinicalAnnotationProvider.Annotate(variant);
         _clinicalProducer.Release();
     }
 }
Пример #5
0
        private void AddClinical()
        {
            while (true)
            {
                _clinicalSemaphore.Wait();
                if (_isCancelled)
                {
                    break;
                }
                foreach (var variant in _variants)
                {
                    ClinicalAnnotationProvider.Annotate(variant);
                }

                _clinicalDone.Release();
            }
        }