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

Run MPRAsnakeflow without internet #164

Open
biozzq opened this issue Jan 15, 2025 · 1 comment
Open

Run MPRAsnakeflow without internet #164

biozzq opened this issue Jan 15, 2025 · 1 comment

Comments

@biozzq
Copy link

biozzq commented Jan 15, 2025

Dear all,

My server cannot connect to the internet, and only the administrator has permission to help install tools that require an internet connection. If I want to install MPRAsnakeflow locally through the administrator, is there any relevant documentation or instructions available?
Thank you very much.

Best wishes,

Zheng zhuqing

@visze
Copy link
Collaborator

visze commented Jan 15, 2025

Hi Zheng zhuqing,

Yes, I think it is possible. The solution I write here requires snakemake on your system. Right now theer exists no all-in-one container. But this will be available at some point (I guess mid of this year).

SOLUTION: The most problematic part is to install the conda envs which is not possible without internet access. But there is the option using the pre-build docker container of all environments using apptainer. The most difficult part is to safe the container at the right position on the system using the corrected (hashed) filename snakemake needs.

You can use this few lines of code to download the image using te correct name on a system with internet access (use the version that you want to use):

VERSION="0.4.2";
URL="docker://visze/mprasnakeflow:${VERSION}";
IMAGE_NAME=`echo -n "${URL}" | md5sum | awk '{print $1".simg"}'`
singularity pull --name $IMAGE_NAME $URL

Then you have to copy it to your system, e.g. /your/container/directory/. There you snakemake MPRAsnakeflow command including this:

--sdm apptainer conda --apptainer-prefix /your/container/directory/

E.g. something like

snakemake --sdm apptainer conda --apptainer-prefix /your/container/directory/ --configfile config.yml --snakefile MPRAsnakeflow/workflow/Snakefile --directory /your/working/directory --cores 10

If you are able to run it with this approach I will update the documentation accordingly. Cross fingers that it works!

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

No branches or pull requests

2 participants