-
Notifications
You must be signed in to change notification settings - Fork 39
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
Updated tutorial for Docker and Singularity for Linux #1833
base: gh-pages
Are you sure you want to change the base?
Conversation
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.
Could you add the option to
- mout the host directory to the docker container
- run FragPipe inside the container
These two are the major parts in my original tutorial, and I feel them the most handy when I use Docker.
Thanks,
Fengchao
@fcyu new version adding your comments: Running FragPipe using Docker and SingularityThis tutorial covers how to use Docker and Singularity to run FragPipe. We will run the Prerequisites for Docker and Apptainer (Linux)Before setting up Docker and Apptainer on Linux, ensure the following:
Running FragPipe with Docker
Running FragPipe with Singularity
|
@rolivella I can't find the new commit. Could you push it? Thanks, Fengchao |
To run FragPipe inside the container, mount the required directories (for example, where your data or project files are located), then execute the FragPipe tool. You can use the following command: | ||
|
||
```bash | ||
docker run -v /path/to/your/data:/mnt/data -it fcyucn/fragpipe:<version> /fragpipe_bin/FragPipe-<version>/fragpipe/bin/fragpipe -config /mnt/data/config_file.fpconfig |
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.
What is the -config
flag for? And what is the format of the fpconfig file? Why not just provide FragPipe's arguments?
Similar to Docker, you can mount directories from your host system when using Singularity. Use the `-B` option to bind a directory from your host system to the Singularity container: | ||
|
||
```bash | ||
singularity exec -B /path/to/your/data:/mnt/data fragPipe-<version>.img /fragpipe_bin/FragPipe-<version>/fragpipe/bin/fragpipe -config /mnt/data/config_file.fpconfig |
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.
What is the -config flag for? And what is the format of the fpconfig file? Why not just provide FragPipe's arguments?
The modified file is a tutorial on how to run FragPipe using Docker and Apptainer (formerly Singularity). It explains how to pull and run the
fcyucn/fragpipe:<version>
container in Docker, convert it into a Singularity image, and then run FragPipe using both containerization tools. The guide includes the necessary prerequisites for installing Docker and Apptainer on Linux, along with step-by-step instructions for running FragPipe in both environments, converting Docker images, and handling permissions withsudo
.