diff --git a/Makefile b/Makefile index 4b6ad401..2c1fd8b1 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,10 @@ pkg-fail: compile echo "$(TEST_URI)" $(NF_BIN) run ./fail.nf -profile standard -plugins $(PROJECT) --outdir "$(TEST_URI)" +path-input: compile + echo "$(TEST_URI)" + $(NF_BIN) run ./main.path.nf -profile standard -plugins $(PROJECT) --outdir "./results" + tower-test: $(NF_BIN) $(NF_BIN) run "https://github.com/quiltdata/nf-quilt" -name local_einstein -with-tower -r main -latest --pub "$(TEST_URI)" diff --git a/main.path.nf b/main.path.nf new file mode 100644 index 00000000..4cbc6608 --- /dev/null +++ b/main.path.nf @@ -0,0 +1,27 @@ +#!/usr/bin/env nextflow +/* groovylint-disable CompileStatic */ + +nextflow.enable.dsl=2 + +test_file_local = 'README.md' +test_file_s3 = 's3://quilt-example/examples/protein-paint/README.md' +test_file_quilt = 'quilt+s3://quilt-example#package=examples/protein-paint&path=README.md' + +myFileChannel = Channel.fromList([file(test_file_local), file(test_file_s3), file(test_file_quilt)]) + +process CHECK_INPUT { + input: + path input + + output: + path 'build/output/README.md' , emit: output + + script: + """ + cp $input input.txt + """ +} + +workflow { + CHECK_INPUT(myFileChannel) +}