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

Param validation #183

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Param validation #183

wants to merge 2 commits into from

Conversation

Mia0509
Copy link

@Mia0509 Mia0509 commented Nov 8, 2023

PR checklist

This PR fix the point 1 of issue #62, where providing a single number for --bin_size in the command line make the pipeline fail (due to parameter validation expecting a String and a single number is considered as an Integer (even when adding quote in command line, Unix strip those automatically)).

The fix is applied for the other parameters with same validation error (res_dist_decay, res_tads and res_compartments).

Here's what was done:

  • Add of a function to replace manually the parameter validation from the nextflow_schema.json. It happens in WorkflowHic.groovy with the digestion parameters check as the function checkParamIntList.
  • In the same file, add of a function to don't apply the .splitCsv().flatten() on the parameter if it's an Integer, which gives a error otherwise. This is called in hic.nf when combining all maps resolution.
  • Those 4 parameters are added to schema_ignore_param in all the configs file, so the original validation don't throw an error and the parameters are still referred in the schema.

Hope this little fix can be useful!

@maxulysse
Copy link
Member

I think we should merge #177 first and maybe have a look on how to deal with this params validation with the nf-validation plugin.

Copy link

github-actions bot commented Nov 8, 2023

nf-core lint overall result: Failed ❌

Posted for pipeline commit ce2cd3a

+| ✅ 148 tests passed       |+
!| ❗   1 tests had warnings |!
-| ❌  10 tests failed       |-

❌ Test failures:

  • nextflow_config - Config variable not found: params.validationShowHiddenParams
  • nextflow_config - Config variable not found: params.validationSchemaIgnoreParams
  • files_unchanged - CODE_OF_CONDUCT.md does not match the template
  • files_unchanged - .github/CONTRIBUTING.md does not match the template
  • files_unchanged - .github/ISSUE_TEMPLATE/bug_report.yml does not match the template
  • files_unchanged - .github/workflows/linting.yml does not match the template
  • files_unchanged - assets/nf-core-hic_logo_light.png does not match the template
  • files_unchanged - lib/NfcoreTemplate.groovy does not match the template
  • schema_params - Param schema_ignore_params from nextflow config not found in nextflow_schema.json
  • multiqc_config - 'assets/multiqc_config.yml' does not contain a matching 'report_comment'.

❗ Test warnings:

✅ Tests passed:

Run details

  • nf-core/tools version 2.10
  • Run at 2023-11-08 15:31:15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants