From 820b5006f57d7998b74370249765fe36c706f3af Mon Sep 17 00:00:00 2001 From: Brian Geuther Date: Mon, 15 Sep 2025 13:32:15 -0400 Subject: [PATCH] Publishing compressed video data into the output folder --- nextflow/workflows/multi_mouse_pipeline.nf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nextflow/workflows/multi_mouse_pipeline.nf b/nextflow/workflows/multi_mouse_pipeline.nf index d8453fc7..1be5d0d4 100644 --- a/nextflow/workflows/multi_mouse_pipeline.nf +++ b/nextflow/workflows/multi_mouse_pipeline.nf @@ -9,6 +9,7 @@ include { PREDICT_ARENA_CORNERS; } from "${projectDir}/nextflow/modules/static_objects" include { VIDEO_TO_POSE; PUBLISH_RESULT_FILE as PUBLISH_MM_POSE_V6; + PUBLISH_RESULT_FILE as PUBLISH_COMPRESSED_VIDEO; } from "${projectDir}/nextflow/modules/utils" include { COMPRESS_VIDEO_CRF } from "${projectDir}/nextflow/modules/compression" @@ -37,8 +38,9 @@ workflow MULTI_MOUSE_TRACKING { // Compress the original video compressed_videos = COMPRESS_VIDEO_CRF(input_video.combine([23]).combine([3000])) compressed_renamed = compressed_videos.map { video -> - tuple(video, "results/${video.baseName.replace("_g3000_crf23", "")}_compressed.mp4") + tuple(video, "results/${video.baseName.replace("_g3000_crf23", "").replace("%20", "/")}_compressed.mp4") } + PUBLISH_COMPRESSED_VIDEO(compressed_renamed) emit: pose_v6