Skip to content

Commit

Permalink
add process datasets test
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiWaldrant committed Jul 11, 2024
1 parent 787920d commit d062ddc
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/workflows/process_datasets/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

# Run this prior to executing this script:
# bin/viash_build -q 'batch_integration'

# 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"

set -e

DATASETS_DIR="resources_test/common"
OUTPUT_DIR="output/process_datasets_test"

if [ ! -d "$OUTPUT_DIR" ]; then
mkdir -p "$OUTPUT_DIR"
fi

export NXF_VER=24.04.3

nextflow run . \
-main-script target/nextflow/workflows/process_datasets/main.nf \
-profile docker \
-entry auto \
-c common/nextflow_helpers/labels_ci.config \
--id run_test \
--input_states "$DATASETS_DIR/**/state.yaml" \
--rename_keys 'input:output_dataset' \
--settings '{"output_train": "train.h5ad", "output_test": "test.h5ad"}' \
--publish_dir "$OUTPUT_DIR" \
--output_state "state.yaml"

0 comments on commit d062ddc

Please sign in to comment.