Skip to content
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

Fix validation issues after nf-core/tools v3 template update #113

Merged
merged 3 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- [[PR #111](https://github.com/nf-core/pixelator/pull/111)] - Template update for nf-core/tools v3.0.2
- [[PR #112](https://github.com/nf-core/pixelator/pull/112)] - Add graph refinement options for pixelator 0.19
- [[PR #113](https://github.com/nf-core/pixelator/pull/113)] - Fix validation issues after nf-core/tools v3.0.2 update

### Parameters

Expand Down
1 change: 0 additions & 1 deletion nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"input_basedir": {
"type": "string",
"format": "directory-path",
"exists": false,
"description": "Path to a local or remote directory that is the \"current working directory\" for relative paths defined in the input samplesheet",
"fa_icon": "fas fa-folder"
},
Expand Down
4 changes: 2 additions & 2 deletions subworkflows/local/utils_nfcore_pixelator_pipeline/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def resolve_relative_path(relative_path, URI samplesheet_path) {
// Validate a given panel key if present against the (dynamic) set of panel options retrieved from pixelator
//
def validate_panel(LinkedHashMap meta, HashSet options) {
if (meta.panel == null) {
if (meta.panel == null || meta.panel == []) {
return meta
}

Expand All @@ -352,7 +352,7 @@ def validate_panel(LinkedHashMap meta, HashSet options) {
// Validate a given design key if present against the (dynamic) set of design options retrieved from pixelator
//
def validate_design(LinkedHashMap meta, HashSet options) {
if (meta.design == null) {
if (meta.design == null || meta.design == []) {
return meta
}

Expand Down
Loading