Package org.broadinstitute.gatk.engine.arguments

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


    protected MalformedReadFilter buildMalformedReadFilter(final boolean filterRNO) {
        return buildMalformedReadFiter(filterRNO,new ValidationExclusion.TYPE[] {});
    }

    protected MalformedReadFilter buildMalformedReadFiter(boolean filterRNO, final ValidationExclusion.TYPE... excl) {
        final ValidationExclusion ve = new ValidationExclusion(Arrays.asList(excl));

        final MalformedReadFilter filter = new MalformedReadFilter();

        final SAMFileHeader h = getHeader();
        final SAMDataSource ds =  getDataSource();
View Full Code Here


        }

    }

    protected ValidationExclusion composeValidationExclusion() {
        return new ValidationExclusion();
    }
View Full Code Here

        final Integer numFileHandles = 1; // I believe that any value would do but need to confirm.
        final boolean useOriginalBaseQualities = true;
        final ValidationStringency strictness = ValidationStringency.LENIENT;
        final Integer readBufferSize = 1; // not relevant.
        final DownsamplingMethod downsamplingMethod = DownsamplingMethod.NONE;
        final ValidationExclusion exclusionList = composeValidationExclusion();
        final Collection<ReadFilter> supplementalFilters = Collections.EMPTY_SET;
        final boolean includeReadsWithDeletionAtLoci = true;

        final GenomeLocParser glp = new GenomeLocParser(header.getSequenceDictionary());
        final SAMDataSource res = new SAMDataSource(
View Full Code Here

    private boolean allowNCigars;

    @Override
    public void initialize(final GenomeAnalysisEngine engine) {
        header = engine.getSAMFileHeader();
        ValidationExclusion validationExclusions = null;
        final SAMDataSource rds = engine.getReadsDataSource();
        if (rds != null) {
          final ReadProperties rps = rds.getReadsInfo();
          if (rps != null) {
            validationExclusions = rps.getValidationExclusionList();
          }
        }
        if (validationExclusions == null) {
            allowNCigars = false;
        } else {
            allowNCigars = validationExclusions.contains(ValidationExclusion.TYPE.ALLOW_N_CIGAR_READS);
        }
    }
View Full Code Here

                genomeLocParser,
                false,
                ValidationStringency.STRICT,
                null,
                null,
                new ValidationExclusion(),
                new ArrayList<ReadFilter>(),
                false);
    }
View Full Code Here

     * @param drivingDataSource Data on which to shard.
     * @param intervals intervals
     * @return the sharding strategy
     */
    protected Iterable<Shard> getShardStrategy(SAMDataSource readsDataSource, ReferenceSequenceFile drivingDataSource, GenomeLocSortedSet intervals) {
        ValidationExclusion exclusions = (readsDataSource != null ? readsDataSource.getReadsInfo().getValidationExclusionList() : null);
        DownsamplingMethod downsamplingMethod = readsDataSource != null ? readsDataSource.getReadsInfo().getDownsamplingMethod() : null;
        ReferenceDataSource referenceDataSource = this.getReferenceDataSource();

        // If reads are present, assume that accessing the reads is always the dominant factor and shard based on that supposition.
        if(!readsDataSource.isEmpty()) {
            if(!readsDataSource.hasIndex() && !exclusions.contains(ValidationExclusion.TYPE.ALLOW_UNINDEXED_BAM))
                throw new UserException.CommandLineException("Cannot process the provided BAM file(s) because they were not indexed.  The GATK does offer limited processing of unindexed BAMs in --unsafe mode, but this GATK feature is currently unsupported.");
            if(!readsDataSource.hasIndex() && intervals != null && !argCollection.allowIntervalsWithUnindexedBAM)
                throw new UserException.CommandLineException("Cannot perform interval processing when reads are present but no index is available.");

            if(walker instanceof LocusWalker) {
View Full Code Here

                genomeLocParser,
                argCollection.useOriginalBaseQualities,
                argCollection.strictnessLevel,
                argCollection.readBufferSize,
                downsamplingMethod,
                new ValidationExclusion(Arrays.asList(argCollection.unsafe)),
                filters,
                readTransformers,
                includeReadsWithDeletionAtLoci(),
                argCollection.defaultBaseQualities,
                removeProgramRecords,
View Full Code Here

        this.readers = samFiles;
        this.header = header;
        this.sortOrder = sortOrder;
        this.validationStringency = strictness;
        this.downsamplingMethod = downsamplingMethod == null ? DownsamplingMethod.NONE : downsamplingMethod;
        this.exclusionList = exclusionList == null ? new ValidationExclusion() : exclusionList;
        this.supplementalFilters = supplementalFilters;
        this.readTransformers = readTransformers;
        this.includeReadsWithDeletionAtLoci = includeReadsWithDeletionAtLoci;
        this.useOriginalBaseQualities = useOriginalBaseQualities;
        this.defaultBaseQualities = defaultBaseQualities;
View Full Code Here

        SAMDataSource dataSource = new SAMDataSource(samFiles, new ThreadAllocation(), null, genomeLocParser,
                false,
                ValidationStringency.STRICT,
                null,
                null,
                new ValidationExclusion(),
                new ArrayList<ReadFilter>(),
                new ArrayList<ReadTransformer>(),
                false, (byte)30, false, true, null, IntervalMergingRule.ALL);

        engine.setReadsDataSource(dataSource);
View Full Code Here

                new SAMFileHeader(),
                SAMFileHeader.SortOrder.coordinate,
                false,
                ValidationStringency.STRICT,
                downsamplingMethod,
                new ValidationExclusion(),
                Collections.<ReadFilter>emptyList(),
                Collections.<ReadTransformer>emptyList(),
                true,
                (byte) -1,
                keepReads);
View Full Code Here

TOP

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

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.