Search in sources :

Example 1 with GeneralPloidyFailOverAFCalculatorProvider

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));
}
Also used : GeneralPloidyFailOverAFCalculatorProvider(org.broadinstitute.hellbender.tools.walkers.genotyper.afcalc.GeneralPloidyFailOverAFCalculatorProvider)

Example 2 with GeneralPloidyFailOverAFCalculatorProvider

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);
}
Also used : GeneralPloidyFailOverAFCalculatorProvider(org.broadinstitute.hellbender.tools.walkers.genotyper.afcalc.GeneralPloidyFailOverAFCalculatorProvider) IndexedSampleList(org.broadinstitute.hellbender.utils.genotyper.IndexedSampleList) SampleList(org.broadinstitute.hellbender.utils.genotyper.SampleList) IndexedSampleList(org.broadinstitute.hellbender.utils.genotyper.IndexedSampleList)

Example 3 with GeneralPloidyFailOverAFCalculatorProvider

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);
}
Also used : GeneralPloidyFailOverAFCalculatorProvider(org.broadinstitute.hellbender.tools.walkers.genotyper.afcalc.GeneralPloidyFailOverAFCalculatorProvider) IndexedSampleList(org.broadinstitute.hellbender.utils.genotyper.IndexedSampleList) SampleList(org.broadinstitute.hellbender.utils.genotyper.SampleList) IndexedSampleList(org.broadinstitute.hellbender.utils.genotyper.IndexedSampleList)

Aggregations

GeneralPloidyFailOverAFCalculatorProvider (org.broadinstitute.hellbender.tools.walkers.genotyper.afcalc.GeneralPloidyFailOverAFCalculatorProvider)3 IndexedSampleList (org.broadinstitute.hellbender.utils.genotyper.IndexedSampleList)2 SampleList (org.broadinstitute.hellbender.utils.genotyper.SampleList)2