use of org.broadinstitute.hellbender.tools.walkers.genotyper.afcalc.GeneralPloidyFailOverAFCalculatorProvider in project gatk by broadinstitute.
the class GenotypingEngineUnitTest method getGenotypingEngine.
private static GenotypingEngine<?> getGenotypingEngine() {
final GenotypeCalculationArgumentCollection genotypeArgs = new GenotypeCalculationArgumentCollection();
final UnifiedArgumentCollection uac = new UnifiedArgumentCollection();
uac.genotypeArgs = new GenotypeCalculationArgumentCollection(genotypeArgs);
return new MinimalGenotypingEngine(uac, SAMPLES, new GeneralPloidyFailOverAFCalculatorProvider(genotypeArgs));
}
use of org.broadinstitute.hellbender.tools.walkers.genotyper.afcalc.GeneralPloidyFailOverAFCalculatorProvider in project gatk by broadinstitute.
the class GenotypeGVCFs method onTraversalStart.
@Override
public void onTraversalStart() {
final VCFHeader inputVCFHeader = getHeaderForVariants();
if (onlyOutputCallsStartingInIntervals) {
if (!hasIntervals()) {
throw new CommandLineException.MissingArgument("-L or -XL", "Intervals are required if --" + ONLY_OUTPUT_CALLS_STARTING_IN_INTERVALS_FULL_NAME + " was specified.");
}
}
intervals = hasIntervals() ? intervalArgumentCollection.getIntervals(getBestAvailableSequenceDictionary()) : Collections.emptyList();
//todo should this be getSampleNamesInOrder?
final SampleList samples = new IndexedSampleList(inputVCFHeader.getGenotypeSamples());
genotypingEngine = new MinimalGenotypingEngine(createUAC(), samples, new GeneralPloidyFailOverAFCalculatorProvider(genotypeArgs));
annotationEngine = VariantAnnotatorEngine.ofSelectedMinusExcluded(annotationGroupsToUse, annotationsToUse, annotationsToExclude, dbsnp.dbsnp, Collections.emptyList());
merger = new ReferenceConfidenceVariantContextMerger();
setupVCFWriter(inputVCFHeader, samples);
}
use of org.broadinstitute.hellbender.tools.walkers.genotyper.afcalc.GeneralPloidyFailOverAFCalculatorProvider in project gatk-protected by broadinstitute.
the class GenotypeGVCFs method onTraversalStart.
@Override
public void onTraversalStart() {
final VCFHeader inputVCFHeader = getHeaderForVariants();
if (onlyOutputCallsStartingInIntervals) {
if (!hasIntervals()) {
throw new CommandLineException.MissingArgument("-L or -XL", "Intervals are required if --" + ONLY_OUTPUT_CALLS_STARTING_IN_INTERVALS_FULL_NAME + " was specified.");
}
}
intervals = hasIntervals() ? intervalArgumentCollection.getIntervals(getBestAvailableSequenceDictionary()) : Collections.emptyList();
//todo should this be getSampleNamesInOrder?
final SampleList samples = new IndexedSampleList(inputVCFHeader.getGenotypeSamples());
genotypingEngine = new MinimalGenotypingEngine(createUAC(), samples, new GeneralPloidyFailOverAFCalculatorProvider(genotypeArgs));
annotationEngine = VariantAnnotatorEngine.ofSelectedMinusExcluded(annotationGroupsToUse, annotationsToUse, annotationsToExclude, dbsnp.dbsnp, Collections.emptyList());
merger = new ReferenceConfidenceVariantContextMerger();
setupVCFWriter(inputVCFHeader, samples);
}
Aggregations