Search in sources :

Example 1 with ReadThreadingAssembler

use of org.broadinstitute.hellbender.tools.walkers.haplotypecaller.readthreading.ReadThreadingAssembler in project gatk by broadinstitute.

the class AssemblyBasedCallerUtils method createReadThreadingAssembler.

public static ReadThreadingAssembler createReadThreadingAssembler(final AssemblyBasedCallerArgumentCollection args) {
    final ReadThreadingAssemblerArgumentCollection rtaac = args.assemblerArgs;
    final ReadThreadingAssembler assemblyEngine = new ReadThreadingAssembler(rtaac.maxNumHaplotypesInPopulation, rtaac.kmerSizes, rtaac.dontIncreaseKmerSizesForCycles, rtaac.allowNonUniqueKmersInRef, rtaac.numPruningSamples);
    assemblyEngine.setErrorCorrectKmers(rtaac.errorCorrectKmers);
    assemblyEngine.setPruneFactor(rtaac.minPruneFactor);
    assemblyEngine.setDebug(args.debug);
    assemblyEngine.setDebugGraphTransformations(rtaac.debugGraphTransformations);
    assemblyEngine.setRecoverDanglingBranches(!rtaac.doNotRecoverDanglingBranches);
    assemblyEngine.setMinDanglingBranchLength(rtaac.minDanglingBranchLength);
    assemblyEngine.setMinBaseQualityToUseInAssembly(args.minBaseQualityScore);
    if (rtaac.graphOutput != null) {
        assemblyEngine.setGraphWriter(new File(rtaac.graphOutput));
    }
    return assemblyEngine;
}
Also used : ReadThreadingAssembler(org.broadinstitute.hellbender.tools.walkers.haplotypecaller.readthreading.ReadThreadingAssembler) ReferenceSequenceFile(htsjdk.samtools.reference.ReferenceSequenceFile) CachingIndexedFastaSequenceFile(org.broadinstitute.hellbender.utils.fasta.CachingIndexedFastaSequenceFile) File(java.io.File)

Example 2 with ReadThreadingAssembler

use of org.broadinstitute.hellbender.tools.walkers.haplotypecaller.readthreading.ReadThreadingAssembler in project gatk-protected by broadinstitute.

the class AssemblyBasedCallerUtils method createReadThreadingAssembler.

public static ReadThreadingAssembler createReadThreadingAssembler(final AssemblyBasedCallerArgumentCollection args) {
    final ReadThreadingAssemblerArgumentCollection rtaac = args.assemblerArgs;
    final ReadThreadingAssembler assemblyEngine = new ReadThreadingAssembler(rtaac.maxNumHaplotypesInPopulation, rtaac.kmerSizes, rtaac.dontIncreaseKmerSizesForCycles, rtaac.allowNonUniqueKmersInRef, rtaac.numPruningSamples);
    assemblyEngine.setErrorCorrectKmers(rtaac.errorCorrectKmers);
    assemblyEngine.setPruneFactor(rtaac.minPruneFactor);
    assemblyEngine.setDebug(args.debug);
    assemblyEngine.setDebugGraphTransformations(rtaac.debugGraphTransformations);
    assemblyEngine.setRecoverDanglingBranches(!rtaac.doNotRecoverDanglingBranches);
    assemblyEngine.setMinDanglingBranchLength(rtaac.minDanglingBranchLength);
    assemblyEngine.setMinBaseQualityToUseInAssembly(args.minBaseQualityScore);
    if (rtaac.graphOutput != null) {
        assemblyEngine.setGraphWriter(new File(rtaac.graphOutput));
    }
    return assemblyEngine;
}
Also used : ReadThreadingAssembler(org.broadinstitute.hellbender.tools.walkers.haplotypecaller.readthreading.ReadThreadingAssembler) ReferenceSequenceFile(htsjdk.samtools.reference.ReferenceSequenceFile) CachingIndexedFastaSequenceFile(org.broadinstitute.hellbender.utils.fasta.CachingIndexedFastaSequenceFile) File(java.io.File)

Aggregations

ReferenceSequenceFile (htsjdk.samtools.reference.ReferenceSequenceFile)2 File (java.io.File)2 ReadThreadingAssembler (org.broadinstitute.hellbender.tools.walkers.haplotypecaller.readthreading.ReadThreadingAssembler)2 CachingIndexedFastaSequenceFile (org.broadinstitute.hellbender.utils.fasta.CachingIndexedFastaSequenceFile)2