Package org.broadinstitute.gatk.engine.arguments

Examples of org.broadinstitute.gatk.engine.arguments.StandardCallerArgumentCollection


    @Test(dataProvider="nonThreadSafeConstructorsData")
    public void testNonThreadSafeConstructors(final int ploidy, final int maxAltAlleles, final AFCalculatorImplementation preferred) {
        final GenotypeCalculationArgumentCollection args = new GenotypeCalculationArgumentCollection();
        args.MAX_ALTERNATE_ALLELES = maxAltAlleles;
        args.samplePloidy = ploidy;
        final StandardCallerArgumentCollection callerArgs = new StandardCallerArgumentCollection();
        if (preferred != null ) callerArgs.requestedAlleleFrequencyCalculationModel = preferred;
        callerArgs.genotypeArgs = args;
        final FixedAFCalculatorProvider providerCallerArgs = new FixedAFCalculatorProvider(callerArgs,null,true);
        final FixedAFCalculatorProvider providerGenotypingArgs = new FixedAFCalculatorProvider(args,null,true);
View Full Code Here


        final GenomeAnalysisEngine toolkit = new GenomeAnalysisEngine();
        final GATKArgumentCollection gatkArguments = new GATKArgumentCollection();
        gatkArguments.numberOfCPUThreadsPerDataThread =cpuThreadCount;
        gatkArguments.numberOfDataThreads = dataThreadCount;
        toolkit.setArguments(gatkArguments);
        final StandardCallerArgumentCollection callerArgs = new StandardCallerArgumentCollection();
        if (impl != null) callerArgs.requestedAlleleFrequencyCalculationModel = impl;
        final GenotypeCalculationArgumentCollection genotypeArgs = new GenotypeCalculationArgumentCollection();
        callerArgs.genotypeArgs = genotypeArgs;
        genotypeArgs.samplePloidy = ploidy;
        genotypeArgs.MAX_ALTERNATE_ALLELES = maxAltAlleles;
View Full Code Here

           }
    }

    @Test(dataProvider="collectionClassPairs")
    public void testCloneTo(final Class<? extends StandardCallerArgumentCollection> fromClass, final Class<? extends StandardCallerArgumentCollection> toClass) {
        final StandardCallerArgumentCollection fromObject;
        try {
            fromObject = randomArgumentCollection(fromClass);
        } catch (final IllegalAccessException e) {
            throw new SkipException("cannot create a random configuration");
        } catch (final InstantiationException e) {
            throw new SkipException("cannot create a random configuration");
        }

        final StandardCallerArgumentCollection toObject = fromObject.cloneTo(toClass);
        Assert.assertNotNull(toObject);
        Assert.assertEquals(toClass,toObject.getClass());
        for (final Field field : fromClass.getFields())
            if (!field.getDeclaringClass().isAssignableFrom(toClass))
                continue;
            else if (Modifier.isPrivate(field.getModifiers()))
                continue;
View Full Code Here

TOP

Related Classes of org.broadinstitute.gatk.engine.arguments.StandardCallerArgumentCollection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.