We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7878257 commit fb39c87Copy full SHA for fb39c87
1 file changed
master_zip_bioheart.sh
@@ -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