Skip to content

Commit

Permalink
use local nextflow binary
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed Nov 24, 2023
1 parent 7c98c7b commit 0994ef9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ params.yaml
*.old
null
quilt+*
nextflow
19 changes: 12 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PROJECT ?= nf-quilt
WRITE_BUCKET ?= quilt-example
FRAGMENT ?= &path=.
NF_DIR ?= ../nextflow
NF_BIN ?= ./nextflow
PID ?= $$$$
PIPELINE ?= sarek
QUERY ?= ?Name=$(USER)&Owner=Kevin+Moore&Date=2023-03-07&Type=CRISPR&Notebook+URL=http%3A%2F%2Fexample.com
Expand Down Expand Up @@ -35,7 +36,11 @@ compile:
./gradlew compileGroovy exportClasspath
@echo "DONE `date`"

nextflow:
$(NF_BIN):
curl -s https://get.nextflow.io | bash
chmod +x $(NF_BIN)

nextflow-git:
if [ ! -d "$(NF_DIR)" ]; then git clone https://github.com/nextflow-io/nextflow.git "$(NF_DIR)"; fi
cd "$(NF_DIR)"; git checkout && make compile && git restore .; cd ..

Expand All @@ -48,7 +53,7 @@ check:

test: clean compile check #coverage

test-nextflow: clean nextflow compile check #coverage
test-nextflow: clean nextflow-git compile check #coverage

test-all: clean compile-all check #coverage

Expand All @@ -64,15 +69,15 @@ pkg-fail: compile
echo "$(TEST_URI)"
./launch.sh run ./fail.nf -profile standard -plugins $(PROJECT) --outdir "$(TEST_URI)"

tower-test: compile-all
nextflow run "https://github.com/quiltdata/nf-quilt" -name local_einstein -with-tower -r main -latest --pub "$(TEST_URI)"
tower-test: $(NF_BIN)
$(NF_BIN) run "https://github.com/quiltdata/nf-quilt" -name local_einstein -with-tower -r main -latest --pub "$(TEST_URI)"

# use `make $(PIPELINE) WRITE_BUCKET=my-s3-bucket` to publish `--outdir` to a Quilt package

$(PIPELINE): compile install
$(PIPELINE): $(NF_BIN) install
echo "Ensure you have docker running"
nextflow pull nf-core/$(PIPELINE)
nextflow run nf-core/$(PIPELINE) -profile test,docker -plugins $(PROJECT)@$(VERSION) --outdir "$(QUILT_URI)"
$(NF_BIN) pull nf-core/$(PIPELINE)
$(NF_BIN) run nf-core/$(PIPELINE) -profile test,docker -plugins $(PROJECT)@$(VERSION) --outdir "$(QUILT_URI)"

#
# Show dependencies
Expand Down

0 comments on commit 0994ef9

Please sign in to comment.