@@ -545,7 +545,7 @@ protected GenomicsDBOptions getGenomicsDBOptions() {
545
545
return genomicsDBOptions ;
546
546
}
547
547
// We do not output the vcf entries in the order they arrive, as trimming alleles may change the start position
548
- // (e.g. in an multiallelic site, see #6444).
548
+ // (e.g. at a multiallelic site, see #6444).
549
549
final private PriorityQueue <VariantContext > pendingVariants = new PriorityQueue <>(Comparator .comparingInt (VariantContext ::getStart ));
550
550
/**
551
551
* Set up the VCF writer, the sample expressions and regexs, filters inputs, and the JEXL matcher
@@ -578,7 +578,7 @@ public void onTraversalStart() {
578
578
IntStream .range (0 , selectGenotypeExpressions .size ()).forEach (i -> selectGenotypeNames .add (String .format ("genotype-select-%d" , i )));
579
579
580
580
// These are maps of type (name, JEXL expression class)
581
- // Note that infoJexls could also contain JEXL expressions that access genotype fields via the VariantContext object vc
581
+ // Note that infoJexls could also contain JEXL expressions that access genotype fields via the VariantContext object
582
582
infoJexls = VariantContextUtils .initializeMatchExps (selectNames , selectExpressions );
583
583
genotypeJexls = VariantContextUtils .initializeMatchExps (selectGenotypeNames , selectGenotypeExpressions );
584
584
@@ -689,7 +689,7 @@ variant record locations can move to the right due to allele trimming if preserv
689
689
// 2. the only remaining alternate allele is spanning deletion (*)
690
690
// If this is the case, we call it a non-variant and remove it from the output based on {@code excludeNonVariants}
691
691
if (excludeNonVariants ) {
692
- // It would be cleaner to write "if (excludeNonVariants && nonVariant) {...}", but isPolymorphicInSamples() could be relatively expensive,
692
+ // It would be cleaner to say "if (excludeNonVariants && nonVariant) {...}", but isPolymorphicInSamples() could be relatively expensive,
693
693
// when we have many samples, so we call it only when excludeNonVariants is set to true.
694
694
final boolean nonVariant = ! result .isPolymorphicInSamples () || GATKVariantContextUtils .isSpanningDeletionOnly (result );
695
695
if (nonVariant ) {
@@ -782,8 +782,7 @@ private boolean passesJexlFilters(final VariantContext vc){
782
782
// Note that this is not equivalent to "!(AF > 0.01 || ReadPosRankSum < -20.0)"
783
783
784
784
// Notice here that calling the match method without the genotype g leads to genotype g being set to null,
785
- // which is fine since infoJexls should not refer to genotype fields (unless using vc.getGenotype(), in which case
786
- // JEXL can access genotype fields via vc)
785
+ // which is fine since infoJexls should not refer to genotype fields (except via vc.getGenotype())
787
786
if (invertLogic (VariantContextUtils .match (vc , jexl ), invertSelect )){
788
787
return true ;
789
788
}
0 commit comments