-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
load somatic variants no longer needs ref genome
- Loading branch information
Showing
3 changed files
with
43 additions
and
60 deletions.
There are no files selected for viewing
49 changes: 0 additions & 49 deletions
49
...ain/java/com/hartwig/hmftools/common/variant/enrich/VariantContextEnrichmentComplete.java
This file was deleted.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
...java/com/hartwig/hmftools/common/variant/enrich/VariantContextEnrichmentLoadSomatics.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.hartwig.hmftools.common.variant.enrich; | ||
|
||
import java.util.function.Consumer; | ||
|
||
import com.google.common.collect.Multimap; | ||
import com.hartwig.hmftools.common.region.GenomeRegion; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import htsjdk.variant.variantcontext.VariantContext; | ||
import htsjdk.variant.vcf.VCFHeader; | ||
|
||
public class VariantContextEnrichmentLoadSomatics implements VariantContextEnrichment { | ||
|
||
public static VariantContextEnrichmentFactory factory(@NotNull final Multimap<String, GenomeRegion> highConfidenceRegions) { | ||
return consumer -> new VariantContextEnrichmentLoadSomatics(highConfidenceRegions, consumer); | ||
} | ||
|
||
private final HighConfidenceEnrichment highConfidenceEnrichment; | ||
|
||
private VariantContextEnrichmentLoadSomatics(@NotNull final Multimap<String, GenomeRegion> highConfidenceRegions, | ||
@NotNull final Consumer<VariantContext> consumer) { | ||
highConfidenceEnrichment = new HighConfidenceEnrichment(highConfidenceRegions, consumer); | ||
} | ||
|
||
@Override | ||
public void flush() { | ||
highConfidenceEnrichment.flush(); | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public VCFHeader enrichHeader(@NotNull final VCFHeader template) { | ||
return highConfidenceEnrichment.enrichHeader(template); | ||
} | ||
|
||
@Override | ||
public void accept(@NotNull final VariantContext context) { | ||
highConfidenceEnrichment.accept(context); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters