Skip to content

Commit c387cc5

Browse files
committed
feat: PR suggestions from coderabbitai
1 parent 77eb860 commit c387cc5

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

divref/tests/tools/test_extract_gnomad_afs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ def test_extract_gnomad_afs(
4343

4444
# All retained variants must exceed freq_threshold in at least one population
4545
min_max_af = va.aggregate(hl.agg.min(hl.max(va.pop_freqs.map(lambda x: x.AF))))
46-
assert min_max_af > 0.001
46+
assert min_max_af >= 0.001

workflows/config/config_schema.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,14 @@ properties:
5151
Minimum allele frequency for at least one selected population when running `divref extract-gnomad-afs`.
5252
Must be <= `hgdp_1kg_min_pop_af_compute_haplotypes`. There are two AF thresholds set in this workflow.
5353
This one is to filter the GCS-hosted Hail table of sites down to a smaller size which is written to
54-
disk for downstream tasks. This step is time-intensive and if we set a relaxed threshold it can be run\
54+
disk for downstream tasks. This step is time-intensive and if we set a relaxed threshold it can be run
5555
once and the outputs re-used for cheaper re-filtering at more stringent thresholds at the `divref
5656
compute-haplotypes` step.
5757
default: 0.001
5858

5959
hgdp_1kg_haplotype_window_size:
6060
type: integer
61+
minimum: 1
6162
description: Window size in bp for grouping variants into haplotypes.
6263
default: 100
6364

0 commit comments

Comments
 (0)