-
Notifications
You must be signed in to change notification settings - Fork 596
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SNVQ recalibration tool added for flow based reads (#8697)
Co-authored-by: Dror Kessler <dror.kessler@ultimagen.com>
- Loading branch information
1 parent
724b5bc
commit 6739e6d
Showing
73 changed files
with
273,250 additions
and
272,313 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
626 changes: 626 additions & 0 deletions
626
...in/java/org/broadinstitute/hellbender/tools/walkers/featuremapping/AddFlowSNVQuality.java
Large diffs are not rendered by default.
Oops, something went wrong.
70 changes: 70 additions & 0 deletions
70
...nstitute/hellbender/tools/walkers/featuremapping/AddFlowSNVQualityArgumentCollection.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,70 @@ | ||
package org.broadinstitute.hellbender.tools.walkers.featuremapping; | ||
|
||
import org.broadinstitute.barclay.argparser.Advanced; | ||
import org.broadinstitute.barclay.argparser.Argument; | ||
import org.broadinstitute.barclay.argparser.Hidden; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* Set of arguments for the {@link AddFlowSNVQuality} | ||
*/ | ||
public class AddFlowSNVQualityArgumentCollection implements Serializable{ | ||
private static final long serialVersionUID = 1L; | ||
public static final String MAX_PHRED_SCORE_FULL_NAME = "max-phred-score"; | ||
public static final String KEEP_SUPPLEMENTARY_ALIGNMENTS_FULL_NAME = "keep-supplementary-alignments"; | ||
public static final String INCLUDE_QC_FAILED_READ_FULL_NAME = "include-qc-failed-read"; | ||
public static final String SNVQ_MODE_FULL_NAME = "snvq-mode"; | ||
public static final String OUTPUT_QUALITY_ATTRIBUTE_FULL_NAME = "output-quality-attribute"; | ||
public static final String DEBUG_READ_NAME_FULL_NAME = "debug-read-name"; | ||
public static final String DEBUG_COLLECT_STATS_INTO_FULL_NAME = "debug-collect-stats-into"; | ||
|
||
public enum SnvqModeEnum { | ||
Legacy, | ||
Optimistic, | ||
Pessimistic, | ||
Geometric | ||
}; | ||
|
||
/** | ||
* maximum value for | ||
* delta in score | ||
**/ | ||
@Argument(fullName = MAX_PHRED_SCORE_FULL_NAME, doc = "Limit value for phred scores", optional = true) | ||
public double maxPhredScore = Double.NaN; | ||
|
||
/** | ||
* keep supplementary alignments? | ||
**/ | ||
@Argument(fullName = KEEP_SUPPLEMENTARY_ALIGNMENTS_FULL_NAME, doc = "keep supplementary alignments ?", optional = true) | ||
public boolean keepSupplementaryAlignments = true; | ||
|
||
@Advanced | ||
@Argument(fullName= INCLUDE_QC_FAILED_READ_FULL_NAME, doc = "include reads with QC failed flag", optional = true) | ||
public boolean includeQcFailedReads = true; | ||
|
||
/** | ||
* snvq computation mode | ||
*/ | ||
@Argument(fullName = SNVQ_MODE_FULL_NAME, doc = "snvq calculation mode.", optional = true) | ||
public SnvqModeEnum snvMode = SnvqModeEnum.Geometric; | ||
|
||
/** | ||
* By default this tool overwrites the QUAL field with the new qualities. Setting this argument saves the original qualities in the specified SAM tag. | ||
*/ | ||
@Argument(fullName = OUTPUT_QUALITY_ATTRIBUTE_FULL_NAME, doc = "alternate SAM tag to put original quality scores instead of overwriting the QUAL field. If not used, QUAL will be overwritten.", optional = true) | ||
public String outputQualityAttribute = null; | ||
|
||
/** | ||
* debug read names? | ||
**/ | ||
@Hidden | ||
@Argument(fullName = DEBUG_READ_NAME_FULL_NAME, doc = "Read names of reads to output details of as part of debugging. ", optional = true) | ||
public List<String> debugReadName = null; | ||
|
||
@Advanced | ||
@Hidden | ||
@Argument(fullName= DEBUG_COLLECT_STATS_INTO_FULL_NAME, doc = "Statistics about the reads will be output to given filename.", optional = true) | ||
public String debugCollectStatsInto = null; | ||
} |
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
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.