Examples of SAMFileReaderBuilder


Examples of org.broadinstitute.gatk.utils.sam.SAMFileReaderBuilder

            Object targetValue = io.getValue();

            // Ghastly hack: reaches in and finishes building out the SAMFileReader.
            // TODO: Generalize this, and move it to its own initialization step.
            if( targetValue instanceof SAMFileReaderBuilder) {
                SAMFileReaderBuilder builder = (SAMFileReaderBuilder)targetValue;
                builder.setValidationStringency(strictnessLevel);
                targetValue = builder.build();
            }

            JVMUtils.setFieldValue( targetField.field, walker, targetValue );
        }
    }
View Full Code Here

Examples of org.broadinstitute.gatk.utils.sam.SAMFileReaderBuilder

        return SAMFileReader.class.isAssignableFrom(type);
    }

    @Override
    public Object parse( ParsingEngine parsingEngine, ArgumentSource source, Type type, ArgumentMatches matches ) {
        SAMFileReaderBuilder builder = new SAMFileReaderBuilder();

        ArgumentMatchValue readerFileName = getArgumentValue( createDefaultArgumentDefinition(source), matches );

        if( readerFileName == null )
            throw new UserException.CommandLineException("SAM file compression was supplied, but no associated writer was supplied with it.");

        builder.setSAMFile(readerFileName.asFile());

        // WARNING: Skipping required side-effect because stub is impossible to generate.
        engine.addInput(source, builder);

        // MASSIVE KLUDGE!  SAMFileReader is tricky to implement and we don't yet have a stub.  Return null, then
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.