From 571aa5579e6287cb3e64506cfaf2f5fa3f35f29a Mon Sep 17 00:00:00 2001 From: Brian Geuther Date: Mon, 22 Sep 2025 11:52:48 -0400 Subject: [PATCH] Casting a potential string object to file to access baseName --- nextflow/workflows/single_mouse_pipeline.nf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextflow/workflows/single_mouse_pipeline.nf b/nextflow/workflows/single_mouse_pipeline.nf index 26ce03f1..aec558d7 100644 --- a/nextflow/workflows/single_mouse_pipeline.nf +++ b/nextflow/workflows/single_mouse_pipeline.nf @@ -124,7 +124,7 @@ workflow SPLIT_BY_CORNERS { // Publish the pose files v6_poses_renamed = v6_with_corners.map { video, pose -> - tuple(pose, "results/${video.baseName.replace("%20", "/")}_pose_est_v6.h5") + tuple(pose, "results/${file(video).baseName.replace("%20", "/")}_pose_est_v6.h5") } PUBLISH_SM_POSE_V6(v6_poses_renamed) // Corners that failed are placed in a separate folder with url-ified names