-
Notifications
You must be signed in to change notification settings - Fork 2
strict syntax #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,8 +19,8 @@ process MICROFINDER_FILTER { | |
| task.ext.when == null || task.ext.when | ||
|
|
||
| script: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| def _args = task.ext.args ?: '' | ||
| def _prefix = task.ext.prefix ?: "${meta.id}" | ||
| def VERSION = "9.1" | ||
| """ | ||
| # Extract scaffold names and counts from GFF file | ||
|
|
@@ -32,11 +32,11 @@ process MICROFINDER_FILTER { | |
| END_VERSIONS | ||
| """ | ||
| stub: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| def _args = task.ext.args ?: '' | ||
| def _prefix = task.ext.prefix ?: "${meta.id}" | ||
| def VERSION = "9.1" | ||
| """ | ||
| touch ${prefix}.MicroFinder.filtered.tsv | ||
| touch ${_prefix}.MicroFinder.filtered.tsv | ||
|
Comment on lines
+36
to
+39
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since it is actually used, this |
||
|
|
||
| cat <<-END_VERSIONS > versions.yml | ||
| "${task.process}": | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,9 +20,9 @@ process SORT_FASTA { | |
| task.ext.when == null || task.ext.when | ||
|
|
||
| script: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| def VERSION = "2.2.3" | ||
| def _args = task.ext.args ?: '' | ||
| def _prefix = task.ext.prefix ?: "${meta.id}" | ||
| def _VERSION = "2.2.3" | ||
|
yumisims marked this conversation as resolved.
Outdated
|
||
| """ | ||
| sort_fasta.rb -f ${input_assembly} -o ${input_tsv} -l ${scaffold_length_cutoff} > ${output_prefix}.MicroFinder.ordered.fa | ||
|
|
||
|
|
@@ -33,15 +33,15 @@ process SORT_FASTA { | |
| """ | ||
|
|
||
| stub: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| def VERSION = "2.2.3" | ||
| def _args = task.ext.args ?: '' | ||
| def _prefix = task.ext.prefix ?: "${meta.id}" | ||
| def _VERSION = "2.2.3" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
| """ | ||
| touch ${output_prefix}.MicroFinder.ordered.fa | ||
|
|
||
| cat <<-END_VERSIONS > versions.yml | ||
| "${task.process}": | ||
| ruby: $VERSION | ||
| ruby: $_VERSION | ||
|
yumisims marked this conversation as resolved.
Outdated
|
||
| END_VERSIONS | ||
| """ | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #!/usr/bin/env bash | ||
| # Helper to run Nextflow lint/validation using the strict syntax parser | ||
|
|
||
| # Ensure the script is executable: chmod +x scripts/strict-lint.sh | ||
|
|
||
| # Usage: | ||
| # ./scripts/strict-lint.sh [nextflow args] | ||
| # | ||
| # This will export the NXF_SYNTAX_PARSER environment variable to `v2` and | ||
| # then run `nextflow lint` (or any other command) with your arguments. | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| export NXF_SYNTAX_PARSER=v2 | ||
|
|
||
| echo "Running with strict syntax parser (NXF_SYNTAX_PARSER=$NXF_SYNTAX_PARSER)" | ||
|
|
||
| echo "nextflow $*" | ||
|
|
||
| # Execute given nextflow command, or default to lint | ||
| if [ $# -eq 0 ]; then | ||
| nextflow lint | ||
| else | ||
| nextflow "$@" | ||
| fi |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.