Package org.broadinstitute.gatk.engine.walkers

Examples of org.broadinstitute.gatk.engine.walkers.BAQMode


    private BAQ.CalculationMode cmode;
    private BAQ.QualityMode qmode;

    @Override
    public ApplicationTime initializeSub(final GenomeAnalysisEngine engine, final Walker walker) {
        final BAQMode mode = WalkerManager.getWalkerAnnotation(walker, BAQMode.class);
        this.refReader = engine.getReferenceDataSource().getReference();
        this.cmode = engine.getArguments().BAQMode;
        this.qmode = mode.QualityMode();
        baqHMM = new BAQ(engine.getArguments().BAQGOP);

        if ( qmode == BAQ.QualityMode.DONT_MODIFY )
            throw new ReviewedGATKException("BUG: shouldn't create BAQ transformer with quality mode DONT_MODIFY");

        if ( mode.ApplicationTime() == ReadTransformer.ApplicationTime.FORBIDDEN && enabled() )
            throw new UserException.BadArgumentValue("baq", "Walker cannot accept BAQ'd base qualities, and yet BAQ mode " + cmode + " was requested.");

        return mode.ApplicationTime();
    }
View Full Code Here

TOP

Related Classes of org.broadinstitute.gatk.engine.walkers.BAQMode

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.