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

How to unset options in Interproscan? #102

Open
gbdias opened this issue Nov 10, 2023 · 3 comments
Open

How to unset options in Interproscan? #102

gbdias opened this issue Nov 10, 2023 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@gbdias
Copy link

gbdias commented Nov 10, 2023

The interproscan module currently runs the tool with many optional arguments activated.

https://github.com/NBISweden/pipelines-nextflow/blob/8b6c7faf72997ba865ac2992f4abfee12a9ec37a/config/functional_annotation_modules.config#L18C4-L27C6

How do I unset options like: --goterms and -pa?

@mahesh-panchal mahesh-panchal added the documentation Improvements or additions to documentation label Nov 10, 2023
@mahesh-panchal mahesh-panchal self-assigned this Nov 10, 2023
@mahesh-panchal
Copy link
Collaborator

Supply a custom config with the args you want:

process {
    withName: 'INTERPROSCAN' {
        ext.args = '-f TSV --iprlookup -dp -t p'
    }
}

and then run it using nextflow run <script> -c custom.config ....

It's been documented here: https://github.com/NBISweden/pipelines-nextflow/blob/master/subworkflows/functional_annotation/README.md#tool-specific-parameters

How can I make this clearer / better findable?

@gbdias
Copy link
Author

gbdias commented Nov 10, 2023

Ok great. So if I want all current args except one, I still need to provide the full list?
I though ext.args was only for extra arguments, like in addition to the ones already set.

@mahesh-panchal
Copy link
Collaborator

No, unfortunately Nextflow doesn't have inheritance, so assigning to a variable overrides it in the config. If you want all except one, then yes, you provide that full list leaving out the one you don't need.

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

No branches or pull requests

2 participants