Skip to content

Commit

Permalink
make path-input
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed Aug 26, 2024
1 parent 717e53d commit bbae1e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ pkg-fail: compile
echo "$(TEST_URI)"
$(NF_BIN) run ./fail.nf -profile standard -plugins $(PROJECT) --outdir "$(TEST_URI)"

path-input: clean compile #-all
path-input: compile
mkdir -p work
date > work/COPY_THIS.md
echo "$(TEST_URI)"
$(NF_BIN) run $(PATH_NF) -profile standard -plugins $(PROJECT) --outdir "./results"

Expand Down
2 changes: 1 addition & 1 deletion fail.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

nextflow.enable.dsl = 2

params.input = 'quilt+s3://quilt-example#package=examples/hurdat'
params.input = 'quilt+s3://udp-spec#package=nf-quilt/source'
params.outdir = '/var/tmp'

packageFiles = Channel.fromPath(params.input)
Expand Down
8 changes: 4 additions & 4 deletions main.path.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

nextflow.enable.dsl=2

test_file_local = 'README.md'
test_file_s3 = 's3://quilt-example/examples/hurdat2/README.md'
test_file_quilt = 'quilt+s3://quilt-example#package=examples/hurdat2&path=README.md'
test_file_local = 'work/COPY_THIS.md'
test_file_s3 = 's3://udp-spec/nf-quilt/source/COPY_THIS.md'
test_file_quilt = 'quilt+s3://udp-spec#package=nf-quilt/source&path=COPY_THIS.md'

myFileChannel = Channel.fromList([file(test_file_local), file(test_file_s3), file(test_file_quilt)])

Expand All @@ -15,7 +15,7 @@ process CHECK_INPUT {
path input

output:
path 'README.md', emit: output
path 'COPY_THIS.md', emit: output

script:
"""
Expand Down

0 comments on commit bbae1e6

Please sign in to comment.