#!/bin/bash set -eo pipefail # get the root of the directory REPO_ROOT=$(git rev-parse --show-toplevel) # ensure that the command below is run from the root of the repository cd "$REPO_ROOT" ID=aviti DIR=resources_test/$ID/ OUT=$DIR/teton_cells2stats_tiny/ # Create directories [ -d "$DIR" ] || mkdir -p "$DIR" [ -d "$OUT" ] || mkdir -p "$OUT" echo "> Downloading Aviti Teton data" wget "https://go.elementbiosciences.com/l/938263/28kddnj7/d59cp" -O "${DIR}/PLUT-0105.tar.gz" tar -xzf "${DIR}/PLUT-0105.tar.gz" -C "$DIR" rm "${DIR}/PLUT-0105.tar.gz" echo "> Processing and subsetting Aviti Teton data" python < Removing original aviti_teton folder" rm -rf "$DIR/PLUT-0105" echo "> Aviti Teton tiny dataset created successfully at $OUT" viash run src/convert/from_cells2stats_to_h5mu/config.vsh.yaml -- \ --input "${OUT}" \ --output "$DIR/aviti_teton_tiny.h5mu" \ --output_compression "gzip" echo "> Conversion to H5MU complete" aws s3 sync \ --profile di \ "$DIR" \ s3://openpipelines-bio/openpipeline_spatial/resources_test/aviti \ --delete \ --dryrun