From b91689ae2b509454d74ac1723ef92e704b471762 Mon Sep 17 00:00:00 2001 From: Kyle Ferriter Date: Wed, 8 Oct 2025 13:12:34 -0400 Subject: [PATCH 1/2] Add misc/clinvar-vrsification --- misc/clinvar-vrsification | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 misc/clinvar-vrsification diff --git a/misc/clinvar-vrsification b/misc/clinvar-vrsification new file mode 100644 index 0000000..6bfd7a4 --- /dev/null +++ b/misc/clinvar-vrsification @@ -0,0 +1,24 @@ +#!/bin/bash + +if [ $# -lt 1 ]; then + echo "Usage: $0 RELEASE_DATE" >&2 + exit 1 +fi + +release_date="$1" + +bucket_root="clinvar-gks/${release_date}/dev" +gs_prefix="gs://${bucket_root}" +input_file="${gs_prefix}/vi.jsonl.gz" +log_file="${release_date}-noliftover.log" + +uv run python clinvar_gk_pilot/main.py \ + --filename "${input_file}" \ + --parallelism 2 2>&1 \ + | tee "${log_file}" + +outfile="output/buckets/${bucket_root}/vi.jsonl.gz" +dest_path="${gs_prefix}/vi-normalized-no-liftover.jsonl.gz" + +gcloud storage cp "${outfile}" "${dest_path}" +echo "Wrote to ${dest_path}" From b3dd64e1c4f383910b9996bff7ec3174cf920474 Mon Sep 17 00:00:00 2001 From: Kyle Ferriter Date: Wed, 8 Oct 2025 13:17:28 -0400 Subject: [PATCH 2/2] Fail on errors in misc/clinvar-vrsification --- misc/clinvar-vrsification | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/clinvar-vrsification b/misc/clinvar-vrsification index 6bfd7a4..ef4caa0 100644 --- a/misc/clinvar-vrsification +++ b/misc/clinvar-vrsification @@ -1,5 +1,7 @@ #!/bin/bash +set -euo pipefail + if [ $# -lt 1 ]; then echo "Usage: $0 RELEASE_DATE" >&2 exit 1