Skip to content

Commit fb39c87

Browse files
committed
Create master_zip_bioheart.sh
1 parent 7878257 commit fb39c87

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

master_zip_bioheart.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
BASE_PREFIX="gs://cpg-tenk10k-test-analysis/str/associatr/final_freeze/bioheart_n975/trs/zips"
5+
OUTPUT_GCS="gs://cpg-tenk10k-test-analysis/str/associatr/final_freeze/bioheart_n975/trs/master_zip/bioheart.zip"
6+
7+
# Work in a temp dir
8+
TMPDIR=$(mktemp -d)
9+
cd "$TMPDIR"
10+
11+
echo "Copying all cell-type zips from $BASE_PREFIX ..."
12+
gsutil -m cp "${BASE_PREFIX}/*.zip" .
13+
14+
echo "Creating bioheart.zip from:"
15+
ls *.zip
16+
17+
zip -r bioheart.zip *.zip
18+
19+
echo "Uploading bioheart.zip to $OUTPUT_GCS ..."
20+
gsutil cp bioheart.zip "$OUTPUT_GCS"
21+
22+
echo "Done."

0 commit comments

Comments
 (0)