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

Improvement: make --tools case insensitive #1187

Open
adamrtalbot opened this issue Aug 18, 2023 · 1 comment · May be fixed by #1188
Open

Improvement: make --tools case insensitive #1187

adamrtalbot opened this issue Aug 18, 2023 · 1 comment · May be fixed by #1188
Labels
enhancement New feature or request

Comments

@adamrtalbot
Copy link
Contributor

Description of feature

--tools can be tricky to understand. A little change we could add would make it case insensitive, meaning if someone wrote --tools Mutect2 it would still work. This could be done by changing every:

params.skip_tools.split(',').contains('mutect2')

to:

params.skip_tools.split(',').toLowerCase().contains('mutect2')

Given how many times this pattern is used, we could also add it to a function.

@adamrtalbot adamrtalbot added the enhancement New feature or request label Aug 18, 2023
adamrtalbot added a commit to adamrtalbot/sarek that referenced this issue Aug 18, 2023
@adamrtalbot adamrtalbot linked a pull request Aug 18, 2023 that will close this issue
10 tasks
@asp8200
Copy link
Contributor

asp8200 commented Aug 19, 2023

@adamrtalbot : The change should be made for both --tools and --skip_tools, right? (EDIT: I now see you already did the PR for both parameters :-) )

How about making the change just one place centrally? Something like

params.skip_tools = params.skip_tools.toLowerCase()

in sarek.nf?

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

Successfully merging a pull request may close this issue.

2 participants