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

Fix docker container permissions for ms2rescore #302

Merged
merged 7 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ process {
}

withName: 'MS2RESCORE' {
containerOptions = '-u $(id -u) -e "HOME=${HOME}" -v $HOME:$HOME'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work like this or does it need to be process.containerOptions?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

process.containerOptions works only in the nextflow.config

I oriented myself by Julia's fix: nf-core/tools#2673

By this we can define container options on module level, that is not possible with runOptions

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And: The MS2Rescore container needed a specific "treatment" in order to run, else permission issues. Previously that was handled by userEmulation, but that is/will be removed :/

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok so this works when having sudo rights, but apparently not via GH actions.. Im gonna test the full diff compared to userEmulation

ext.args = [
"--ms2_tolerance ${2 * params.fragment_mass_tolerance}",
"--ms2pip_model ${params.ms2pip_model}",
Expand Down
2 changes: 1 addition & 1 deletion conf/test_percolator.config
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ params {

// Don't do quantification since this step needs a larger test dataset (-> test quantification using test_full)
skip_quantification = true
rescoring_engine = 'mokapot'
rescoring_engine = 'percolator'
marissaDubbelaar marked this conversation as resolved.
Show resolved Hide resolved
}
18 changes: 9 additions & 9 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,17 @@ profiles {
apptainer.enabled = false
}
docker {
docker.enabled = true
conda.enabled = false
singularity.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
apptainer.enabled = false
docker.runOptions = ''
docker.enabled = true
conda.enabled = false
singularity.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
apptainer.enabled = false
process.containerOptions = '-u $(id -u):$(id -g)'
}
arm {
docker.runOptions = '--platform=linux/amd64'
process.containerOptions = '-u $(id -u):$(id -g) --platform=linux/amd64'
}
singularity {
singularity.enabled = true
Expand Down
Loading