From 2b8fdc6ddd0265e817fe39fef50868299a388687 Mon Sep 17 00:00:00 2001 From: "Dr. Ernie Prabhakar" <19791+drernie@users.noreply.github.com> Date: Tue, 29 Oct 2024 21:05:27 -0700 Subject: [PATCH] make dyn-test --- Makefile | 3 +++ main.dynamic.nf | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 main.dynamic.nf diff --git a/Makefile b/Makefile index 0f23079c..2d39d0f8 100644 --- a/Makefile +++ b/Makefile @@ -73,6 +73,9 @@ pkg-test: compile #-all echo "$(TEST_URI)" $(NF_BIN) run ./main.nf -profile standard -plugins $(PROJECT) --outdir "$(TEST_URI)" +dyn-test: compile #-all + $(NF_BIN) run ./main.dynamic.nf -profile standard -plugins $(PROJECT) + s3-overlay: compile $(NF_BIN) run ./main.nf --plugins $(PROJECT) --outdir "$(S3_BASE)/s3-overlay" --input "$(S3_BASE)/s3-in" diff --git a/main.dynamic.nf b/main.dynamic.nf new file mode 100644 index 00000000..3f89574c --- /dev/null +++ b/main.dynamic.nf @@ -0,0 +1,32 @@ +#!/usr/bin/env nextflow +/* groovylint-disable CompileStatic */ + +nextflow.enable.dsl = 2 +params.hash = 'c4e44f6932f13f626b8640d54fa235c1bfea675f1ad3b5b022a99b3aeb18c637' +params.input = "quilt+s3://udp-spec#package=nf-quilt/source@${params.hash}" + +packageFiles = Channel.fromPath(params.input) + +process transfer { + publishDir( + path: 'quilt+s3://udp-spec#package=nf-quilt/dynamic', + mode: 'copy', + ) + container 'ubuntu:20.04' + + input: + path x + + output: + path 'inputs/**' + + """ + mkdir -p data + cp -r $x inputs/ + echo inputs/$x + """ +} + +workflow { + packageFiles | transfer | view { file -> file } +}