Skip to content

Commit

Permalink
Add par_regions_bed to make_examples_extra_args in run_deepvariant.sh
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 698268977
  • Loading branch information
pichuan authored and copybara-github committed Nov 20, 2024
1 parent 05f0933 commit 15cb3e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/inference_deepvariant.sh
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,14 @@ function setup_args() {
if [[ -n "${PROPOSED_VARIANTS}" ]]; then
MAKE_EXAMPLES_ARGS="${MAKE_EXAMPLES_ARGS},proposed_variants=/input/$(basename "$PROPOSED_VARIANTS")"
fi
if [[ -n "${PAR_REGIONS_BED}" ]]; then
# Note: currently this following line won't be run if
# MAKE_EXAMPLES_ARGS is empty, which means `par_regions_bed` won't
# be set if MAKE_EXAMPLES_ARGS is empty. That is the intended
# behavior because --par_regions_bed isn't useful unless --haploid_contigs
# is set.
MAKE_EXAMPLES_ARGS="${MAKE_EXAMPLES_ARGS},par_regions_bed=/input/$(basename "$PAR_REGIONS_BED")"
fi
extra_args+=( --make_examples_extra_args "\"${MAKE_EXAMPLES_ARGS}\"")
fi
if [[ -n "${CALL_VARIANTS_ARGS}" ]]; then
Expand Down

0 comments on commit 15cb3e6

Please sign in to comment.