-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25da765
commit ce8051c
Showing
9 changed files
with
120 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
...ools/walkers/haplotypecaller/HaplotypeCallerReadThreadingAssemblerArgumentCollection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package org.broadinstitute.hellbender.tools.walkers.haplotypecaller; | ||
|
||
import org.broadinstitute.barclay.argparser.Advanced; | ||
import org.broadinstitute.barclay.argparser.Argument; | ||
import org.broadinstitute.barclay.argparser.Hidden; | ||
import org.broadinstitute.hellbender.tools.walkers.haplotypecaller.readthreading.ReadThreadingAssembler; | ||
|
||
import java.io.File; | ||
|
||
public class HaplotypeCallerReadThreadingAssemblerArgumentCollection extends ReadThreadingAssemblerArgumentCollection { | ||
/** | ||
* A single edge multiplicity cutoff for pruning doesn't work in samples with variable depths, for example exomes | ||
* and RNA. This parameter enables the probabilistic algorithm for pruning the assembly graph that considers the | ||
* likelihood that each chain in the graph comes from real variation. | ||
*/ | ||
@Advanced | ||
@Argument(fullName="adaptive-pruning", doc = "Use Mutect2's adaptive graph pruning algorithm", optional = true) | ||
public boolean useAdaptivePruning = false; | ||
|
||
/** | ||
* By default, the read threading assembler will attempt to recover dangling heads and tails. See the `minDanglingBranchLength` argument documentation for more details. | ||
*/ | ||
@Hidden | ||
@Argument(fullName="do-not-recover-dangling-branches", doc="Disable dangling head and tail recovery", optional = true) | ||
public boolean doNotRecoverDanglingBranches = false; | ||
|
||
/** | ||
* As of version 3.3, this argument is no longer needed because dangling end recovery is now the default behavior. See GATK 3.3 release notes for more details. | ||
*/ | ||
@Deprecated | ||
@Argument(fullName="recover-dangling-heads", doc="This argument is deprecated since version 3.3", optional = true) | ||
public boolean DEPRECATED_RecoverDanglingHeads = false; | ||
|
||
/** | ||
* This argument is specifically intended for 1000G consensus analysis mode. Setting this flag will inject all | ||
* provided alleles to the assembly graph but will not forcibly genotype all of them. | ||
*/ | ||
@Advanced | ||
@Argument(fullName="consensus", doc="1000G consensus mode", optional = true) | ||
public boolean consensusMode = false; | ||
|
||
@Override | ||
public ReadThreadingAssembler makeReadThreadingAssembler() { | ||
final ReadThreadingAssembler assemblyEngine = new ReadThreadingAssembler(maxNumHaplotypesInPopulation, kmerSizes, | ||
dontIncreaseKmerSizesForCycles, allowNonUniqueKmersInRef, numPruningSamples, useAdaptivePruning ? 0 : minPruneFactor, | ||
useAdaptivePruning, initialErrorRateForPruning, pruningLog10OddsThreshold, maxUnprunedVariants); | ||
assemblyEngine.setDebugGraphTransformations(debugGraphTransformations); | ||
assemblyEngine.setRecoverDanglingBranches(!doNotRecoverDanglingBranches); | ||
assemblyEngine.setMinDanglingBranchLength(minDanglingBranchLength); | ||
|
||
if ( graphOutput != null ) { | ||
assemblyEngine.setGraphWriter(new File(graphOutput)); | ||
} | ||
|
||
return assemblyEngine; | ||
} | ||
|
||
@Override | ||
public boolean consensusMode() { return consensusMode; } | ||
} |
35 changes: 35 additions & 0 deletions
35
...lbender/tools/walkers/haplotypecaller/MutectReadThreadingAssemblerArgumentCollection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package org.broadinstitute.hellbender.tools.walkers.haplotypecaller; | ||
|
||
import org.broadinstitute.barclay.argparser.Advanced; | ||
import org.broadinstitute.barclay.argparser.Argument; | ||
import org.broadinstitute.hellbender.tools.walkers.haplotypecaller.readthreading.ReadThreadingAssembler; | ||
|
||
import java.io.File; | ||
|
||
public class MutectReadThreadingAssemblerArgumentCollection extends ReadThreadingAssemblerArgumentCollection { | ||
|
||
/** | ||
* A single edge multiplicity cutoff for pruning doesn't work in samples with variable depths, for example exomes | ||
* and RNA. This parameter disables the probabilistic algorithm for pruning the assembly graph that considers the | ||
* likelihood that each chain in the graph comes from real variation, and instead uses a simple multiplicity cutoff. | ||
*/ | ||
@Advanced | ||
@Argument(fullName="disable-adaptive-pruning", doc = "Disable the adaptive algorithm for pruning paths in the graph", optional = true) | ||
public boolean disableAdaptivePruning = false; | ||
|
||
@Override | ||
public ReadThreadingAssembler makeReadThreadingAssembler() { | ||
final ReadThreadingAssembler assemblyEngine = new ReadThreadingAssembler(maxNumHaplotypesInPopulation, kmerSizes, | ||
dontIncreaseKmerSizesForCycles, allowNonUniqueKmersInRef, numPruningSamples, disableAdaptivePruning ? minPruneFactor : 0, | ||
!disableAdaptivePruning, initialErrorRateForPruning, pruningLog10OddsThreshold, maxUnprunedVariants); | ||
assemblyEngine.setDebugGraphTransformations(debugGraphTransformations); | ||
assemblyEngine.setRecoverDanglingBranches(true); | ||
assemblyEngine.setMinDanglingBranchLength(minDanglingBranchLength); | ||
|
||
if ( graphOutput != null ) { | ||
assemblyEngine.setGraphWriter(new File(graphOutput)); | ||
} | ||
|
||
return assemblyEngine; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.