Пример #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 AddAlleleFreq()
 {
     while (await _alleleFreqChannel.Reader.WaitToReadAsync())
     {
         while (_alleleFreqChannel.Reader.TryRead(out var variant))
         {
             AlleleFreqProvider.Annotate(variant);
         }
     }
 }
Пример #3
0
 private void AddAlleleFrequencies()
 {
     while (true)
     {
         _alleleFreqSemaphore.Wait();
         if (_isComplete)
         {
             break;
         }
         AlleleFreqProvider.Annotate(_variant);
         _alleleFreqDone.Release();
     }
 }
Пример #4
0
 private void AddAlleleFreq()
 {
     while (true)
     {
         _alleleConsumer.Wait();
         if (!_alleleFreqQueue.TryDequeue(out var variant))
         {
             if (_isCancelled)
             {
                 break;
             }
             continue;
         }
         AlleleFreqProvider.Annotate(variant);
         _alleleProducer.Release();
     }
 }
Пример #5
0
        private void AddAlleleFrequencies()
        {
            while (true)
            {
                _alleleFreqSemaphore.Wait();
                if (_isCancelled)
                {
                    break;
                }
                foreach (var variant in _variants)
                {
                    AlleleFreqProvider.Annotate(variant);
                }

                _alleleFreqDone.Release();
            }
        }