Search in sources :

Example 1 with ChromosomeFilter

use of com.hartwig.hmftools.common.variant.filter.ChromosomeFilter in project hmftools by hartwigmedical.

the class SomaticVariantFactory method filteredInstance.

@NotNull
public static SomaticVariantFactory filteredInstance(@NotNull VariantContextFilter... filters) {
    final CompoundFilter filter = new CompoundFilter(true);
    filter.add(new ChromosomeFilter());
    filter.addAll(Arrays.asList(filters));
    return new SomaticVariantFactory(filter);
}
Also used : CompoundFilter(htsjdk.variant.variantcontext.filter.CompoundFilter) ChromosomeFilter(com.hartwig.hmftools.common.variant.filter.ChromosomeFilter) NotNull(org.jetbrains.annotations.NotNull)

Example 2 with ChromosomeFilter

use of com.hartwig.hmftools.common.variant.filter.ChromosomeFilter in project hmftools by hartwigmedical.

the class SomaticVariantFactory method passOnlyInstance.

@NotNull
public static SomaticVariantFactory passOnlyInstance() {
    final CompoundFilter filter = new CompoundFilter(true);
    filter.add(new ChromosomeFilter());
    filter.add(new PassingVariantFilter());
    return new SomaticVariantFactory(filter);
}
Also used : PassingVariantFilter(htsjdk.variant.variantcontext.filter.PassingVariantFilter) CompoundFilter(htsjdk.variant.variantcontext.filter.CompoundFilter) ChromosomeFilter(com.hartwig.hmftools.common.variant.filter.ChromosomeFilter) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

ChromosomeFilter (com.hartwig.hmftools.common.variant.filter.ChromosomeFilter)2 CompoundFilter (htsjdk.variant.variantcontext.filter.CompoundFilter)2 NotNull (org.jetbrains.annotations.NotNull)2 PassingVariantFilter (htsjdk.variant.variantcontext.filter.PassingVariantFilter)1