Skip to content

Commit

Permalink
Merge pull request nf-core#113 from nf-core/fix-panel-file-validation
Browse files Browse the repository at this point in the history
Fix validation issues after nf-core/tools v3 template update
  • Loading branch information
fbdtemme authored Oct 29, 2024
2 parents 95d8eed + 0e7e0c2 commit a2a6c1c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit a2a6c1c

Please sign in to comment.