Skip to content

Commit 0f786fd

Browse files
committed
Support ChromosomeCounts annotation
1 parent fd24b32 commit 0f786fd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/variant/VariantAnnotatorStep.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ public Provider()
4343
}}, null),
4444
ToolParameterDescriptor.create("maf", "Minor Allele Frequency", "If selected, MAF will be annotated.", "checkbox", new JSONObject(){{
4545
put("checked", true);
46+
}}, null),
47+
ToolParameterDescriptor.create("chromosomeCounts", "Chromosome Counts", "If selected, GATK ChromosomeCounts annotations, including AF and AC, will be annotated.", "checkbox", new JSONObject(){{
48+
put("checked", false);
4649
}}, null)
4750
), null, "");
4851
}
@@ -87,6 +90,12 @@ public Output processVariants(File inputVCF, File outputDirectory, ReferenceGeno
8790
options.add("MinorAlleleFrequency");
8891
}
8992

93+
if (getProvider().getParameterByName("chromosomeCounts").extractValue(getPipelineCtx().getJob(), getProvider(), getStepIdx(), Boolean.class, false))
94+
{
95+
options.add("-A");
96+
options.add("ChromosomeCounts");
97+
}
98+
9099
if (intervals != null)
91100
{
92101
intervals.forEach(interval -> {

0 commit comments

Comments
 (0)