-
Notifications
You must be signed in to change notification settings - Fork 4
Adopt typed params for pipeline-specific parameters #77
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
Changes from all 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 |
|---|---|---|
|
|
@@ -6,55 +6,22 @@ | |
| ---------------------------------------------------------------------------------------- | ||
| */ | ||
|
|
||
| // Global default params, used in configs | ||
| // Params read directly within this config file (config-parse time, before any script such as | ||
| // main.nf is read) cannot use Nextflow's typed `params` block -- that syntax is script-only, see | ||
| // https://github.com/nf-core/phyloplace/issues/74. Everything else is declared with types in | ||
| // main.nf instead. | ||
| params { | ||
|
|
||
| // Input options | ||
| phyloplace_input = null | ||
| phylosearch_input = null | ||
| id = 'placement' | ||
| alignmethod = 'hmmer' | ||
| queryseqfile = null | ||
| refseqfile = null | ||
| hmmfile = null | ||
| refphylogeny = null | ||
| model = null | ||
| taxonomy = null | ||
| search_fasta = null | ||
| save_domtblout = false | ||
|
|
||
| // MultiQC options | ||
| multiqc_config = null | ||
| multiqc_title = null | ||
| multiqc_logo = null | ||
| max_multiqc_email_size = '25.MB' | ||
| multiqc_methods_description = null | ||
|
|
||
| // Boilerplate options | ||
| outdir = null | ||
| publish_dir_mode = 'copy' | ||
|
Comment on lines
15
to
16
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. You can't add typed inputs here and in the other remaining ones of
Member
Author
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. Good push -- made us look again at what was actually still there and why. Verified: a typed But your comment did make us re-check whether everything remaining here actually needed to stay, and it turned up a real one: |
||
| email = null | ||
| email_on_fail = null | ||
| plaintext_email = false | ||
| monochrome_logs = false | ||
| // `help` has a boolean-or-string schema type (bare `--help` vs `--help <topic>`) that doesn't | ||
| // map to a single Nextflow type, so it stays untyped too. | ||
| help = false | ||
| help_full = false | ||
| show_hidden = false | ||
| version = false | ||
| pipelines_testdata_base_path = 'https://raw.githubusercontent.com/nf-core/test-datasets/' | ||
| trace_report_suffix = new java.util.Date().format( 'yyyy-MM-dd_HH-mm-ss') | ||
|
|
||
| // Config options | ||
| config_profile_name = null | ||
| config_profile_description = null | ||
|
|
||
| custom_config_version = 'master' | ||
| custom_config_base = "https://raw.githubusercontent.com/nf-core/configs/${params.custom_config_version}" | ||
| config_profile_contact = null | ||
| config_profile_url = null | ||
|
|
||
| // Schema validation default options | ||
| validate_params = true | ||
| } | ||
|
|
||
| // Backwards compatibility for publishDir syntax | ||
|
|
@@ -276,14 +243,14 @@ manifest { | |
| description = """Performs phylogenetic placement with EPA-NG""" | ||
| mainScript = 'main.nf' | ||
| defaultBranch = 'master' | ||
| nextflowVersion = '!>=25.10.4' | ||
| nextflowVersion = '!>=26.04.0' | ||
| version = '2.2.0dev' | ||
| doi = '' | ||
| } | ||
|
|
||
| // Nextflow plugins | ||
| plugins { | ||
| id 'nf-schema@2.7.2' // Validation of pipeline parameters and creation of an input channel from a sample sheet | ||
| id 'nf-schema@2.8.0' // Validation of pipeline parameters and creation of an input channel from a sample sheet | ||
| } | ||
|
|
||
| validation { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was hesitant to review due to lack of experience on this. But given you posted twice.
Shouldn't these
String?need to bePath??There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it against real Nextflow (26.04.6): a
Path?-typed param given an HTTPS URL fails withInput file '...' does not exist-- Nextflow resolves it as a local filesystem path rather than a remote URL. Since phyloplace's own test profiles pass file params as HTTPS URLs,Path?would break them, soString?is intentional here.