-
Notifications
You must be signed in to change notification settings - Fork 9
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
genopred Dockerfile #241
base: main
Are you sure you want to change the base?
genopred Dockerfile #241
Conversation
WORKDIR /tools/GenoPred | ||
RUN git clone --depth 1 --branch v2.2.0 https://github.com/opain/GenoPred.git . | ||
|
||
RUN conda env update -f /tools/GenoPred/pipeline/envs/pipeline.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RUN /bin/bash -c ". activate genopred && cd /tools/GenoPred/pipeline && snakemake --restart-times 3 -j 1 --use-conda --conda-frontend mamba get_dependencies" | ||
|
||
# cleanup for smaller image size | ||
RUN mamba clean -a -y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
# cleanup for smaller image size | ||
RUN mamba clean -a -y | ||
RUN pip cache purge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good. Maybe time to prune docker for old builds etc., again ( |
I've got genopred up and running on NREC dev box, but not yet up and running when it's packaged in a container. Attached is an example of genopred's output (using test data as in the tutorial - https://opain.github.io/GenoPred/pipeline_readme.html#run-using-test-data. ; most interesting files in attached .tar.gz are example_plink1/reports/example_plink1-report.html report; also nice individual-level reports, e.g. example_plink1/reports/example_plink1-11_MID.11_MID-report.html ). When run as a container I do the following:
The I think to get past this we'll need to better understand how snakemake manages conda environments, and whether this is compatible with singularity's framework (e.g. readonly file system). Also genopred seem to be tested in environments where there is internet, but we don't have that on TSD, so some featuers may not work (e.g. pulling score files from PGS catalog). It's good to have a complete of genopred features that require internet. |
As we discussed, "libmambapy.bindings.MambaNativeException: filesystem error: temp_directory_path: No such file or directory [/nrec/projects/tmp]" is because |
This pull request appears to be stale due to non-activity |
This is a Dockerfile for https://github.com/opain/GenoPred . I've managed to build it and have ~4 GB large genopred.sif file as output, however it does seem to generate some errors if I do this on our NREC devbox.
@espenhgn I think we need to either install apptainer and update docker to latest version on our devbox; or possibly create a new devbox just to not mess around with our current one (but for that we need to ask for more disk space - ideally a 2 TB large disk on NREC).
I don't suggest to merge this PR - eventually genopred.sif should be a separate repo as it's quite large.