Skip to content

Commit

Permalink
fix refactoring issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Oct 31, 2024
1 parent b95de05 commit a8f4e9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/reporting/process_task_results/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ workflow run_wf {
main:
output_ch = input_ch

fromState: [
| get_task_info.run(
fromState: [
"input": "input_task_info"
],
toState: ["output_task": "output"]
Expand Down
7 changes: 4 additions & 3 deletions src/reporting/process_task_results/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ set -e
REPO_ROOT=$(git rev-parse --show-toplevel)
cd "$REPO_ROOT"

for TASK in "denoising" "dimensionality_reduction" "batch_integration" "label_projection" "match_modalities" "predict_modality"; do
for TASK in "task_perturbation_prediction"; do
# for TASK in "label_projection"; do
BASE_DIR="s3://openproblems-data/resources/$TASK/results/"

# find subdir in bucket with latest date
DATE=$(aws s3 ls $BASE_DIR --recursive | awk '{print $4}' | grep 'task_info.yaml' | sort -r | head -n 1 | sed 's#.*/run_\(.*\)/[^/]*$#\1#')

INPUT_DIR="$BASE_DIR/run_$DATE"
OUTPUT_DIR="../website/results/$TASK/data"
TASK_STRIP_PREFIX=$(echo $TASK | sed 's/task_//')
OUTPUT_DIR="../website/results/$TASK_STRIP_PREFIX/data"

# # temp sync
# aws s3 sync $INPUT_DIR output/temp
Expand All @@ -27,7 +28,7 @@ for TASK in "denoising" "dimensionality_reduction" "batch_integration" "label_pr
-main-script target/nextflow/reporting/process_task_results/main.nf \
-profile docker \
-resume \
-c src/wf_utils/labels_ci.config \
-c common/nextflow_helpers/labels_ci.config \
--id "process" \
--input_scores "$INPUT_DIR/score_uns.yaml" \
--input_dataset_info "$INPUT_DIR/dataset_uns.yaml" \
Expand Down

0 comments on commit a8f4e9d

Please sign in to comment.