示例#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();
            }
        }