Example #1
0
        public void FilterMerge()
        {
            Initialize();

            _v1.Filters = new List <FilterType> {
                FilterType.LowDepth, FilterType.LowVariantQscore
            };
            _v2.Filters = new List <FilterType> {
                FilterType.MultiAllelicSite
            };
            _v3.Filters = new List <FilterType> {
                FilterType.LowDepth
            };

            var mergedFilters = VcfFormatter.MergeFilters(new List <CalledAllele> {
                _v1, _v2, _v3
            });
            var expectedFilters = new List <FilterType> {
                FilterType.LowDepth, FilterType.LowVariantQscore, FilterType.MultiAllelicSite
            };

            Assert.Equal(expectedFilters, mergedFilters);
        }
 public static List <FilterType> CombineFilters(CalledAllele VariantA, CalledAllele VariantB)
 {
     return(VcfFormatter.MergeFilters(new List <CalledAllele> {
         VariantA, VariantB
     }).ToList());
 }