-
Notifications
You must be signed in to change notification settings - Fork 22
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 mhcflurry docker permission problem #52
Conversation
I just had a look at the GitHub page of MHCflurry. The described common issue seems to be the one you noticed I guess? |
You mean the HTTP connection issue? I wouldn't think so. I think it is a permission problem, because it can't create the folder |
@skrakau I searched in the nf-core slack and actually
@nf-core/core would that still be the best solution in this case? |
Hi @christopher-mohr, I also asked about this issue in the nf-core help channel. My conclusion would be:
Thus, since it is actually possible to change this behaviour using the |
I totally agree. Let's go with this solution for now 👍 . |
LGTM! I would suggest to merge it after the template merge has been completed. |
When running
mhcflurry
in combination with thedocker
profile, it tries to create a dir/.local/
to download the MHCflurry models, which causes an "permission denied" error (see #51).To fix this problem I changed the
MHCFLURRY_DATA_DIR
andMHCFLURRY_DOWNLOADS_CURRENT_RELEASE
environment variables within the precesspeptidePrediction
. I guess this could also be changed in the Dockerfile, but thought in the process this might be more intuitive. Or what do you think?To get this working, one needs for some reason to specify the MHCflurry release for which to download the models. Thus the
MHCFLURRY_DOWNLOADS_CURRENT_RELEASE
environment variable would need to get updated as well, when MHCflurry will be updated in the future (which is a bit unfortunate, since it's a bit error prone, but I didn't see a different solution).The different versions of the MHCflurry python/conda packages and github tags were a bit confusing. I obtained the specified version 1.4.0 by manually installing mhcflurry 1.4.3 and then running 'mhcflurry-downloads fetch models_class1' (which writes out the used version for the model download) .
PR checklist
nextflow run . -profile test,docker
).nf-core lint .
).docs
is updatedCHANGELOG.md
is updatedREADME.md
is updatedLearn more about contributing: https://github.com/nf-core/epitopeprediction/tree/master/.github/CONTRIBUTING.md