Closed j23414 closed 1 year ago
Awesome - Also would be great to include this in the RTD.
Code conflict occurred because I put the "define valid params" code in the same place as the "check_software" code. I moved one before the other and it runs fine.
I also added an FAQ.md file to move documentation text. Feel free to move it to a more appropriate place in the RTD.
Description
Nextflow will quietly ignore any misspelled or extra parameters. Since polishCLR sometimes requires quite a number of files/parameters, it was necessary to add an “unrecognized parameter” catch-all kind of error.
Right now the valid parameters are hardcoded:
https://github.com/isugifNF/polishCLR/blob/98b864ca3a2611fb33a1b544d74b70b127b48e90/main.nf#L100-L109
based on the answer given by this thread.
Issue
Related to issue(s) https://github.com/isugifNF/polishCLR/issues/37
Testing
If reviewer has a working nextflow install, a quick test can be run using empty input files and some non-existent flags:
Which should return: