Skip to content

Commit 65c726b

Browse files
authored
Add misc/clinvar-vrsification (#28)
* Add misc/clinvar-vrsification * Fail on errors in misc/clinvar-vrsification
1 parent c5165d8 commit 65c726b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

misc/clinvar-vrsification

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
if [ $# -lt 1 ]; then
6+
echo "Usage: $0 RELEASE_DATE" >&2
7+
exit 1
8+
fi
9+
10+
release_date="$1"
11+
12+
bucket_root="clinvar-gks/${release_date}/dev"
13+
gs_prefix="gs://${bucket_root}"
14+
input_file="${gs_prefix}/vi.jsonl.gz"
15+
log_file="${release_date}-noliftover.log"
16+
17+
uv run python clinvar_gk_pilot/main.py \
18+
--filename "${input_file}" \
19+
--parallelism 2 2>&1 \
20+
| tee "${log_file}"
21+
22+
outfile="output/buckets/${bucket_root}/vi.jsonl.gz"
23+
dest_path="${gs_prefix}/vi-normalized-no-liftover.jsonl.gz"
24+
25+
gcloud storage cp "${outfile}" "${dest_path}"
26+
echo "Wrote to ${dest_path}"

0 commit comments

Comments
 (0)