-
Notifications
You must be signed in to change notification settings - Fork 8
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
Installation of dependencies fail - Docker wrapper needed #14
Comments
Dear Mikhail, I am very sorry that you had difficulties to install all command line tools. I very much like your suggestion to install all command line tools and their various dependencies within a Docker container (including LTRpred itself). Do you think a conda environment would also be useful? I will start working on this! |
Not sure it'll be possible to create a single conda recipe for so many tools. Docker seems best as it provides the relevant OS environment. I've tried https://hub.docker.com/r/rocker/rstudio to have RStudio, but again, ran in multiple issues with dependencies. A single Docker file that installs the dependencies, R, and LTRpred with all its dependencies seems the only option |
Thank you so much for this insight. In this case I will focus on the Docker file that installs everything and will come back to you shortly. Once more, please accept my apologies for the inconvenience caused, but I hope this Docker file will make the life for many future users easier. Many thanks! |
Dear Mikhail, Please find enclosed a https://github.com/HajkD/LTRpred/blob/master/Dockerfile This # assuming the Dockerfile is in the current working directory
docker build -t ltrpred .
# run LTRpred::LTRpred(...) example via docker
docker run ltrpred In the next days, I will also add an RStudio interface via You were absolutely correct, during the past months new dependency conflicts emerged between different tool versions. I resolved them now in the I hope this Best wishes, |
Thanks, Hajk, this is a great start! The Docker image compiles, takes some time. Looking forward to the full version when one can play with LTRpred via RStudio interface. |
Following the instructions:
Now in the R prompt:
I'm getting
I see it is being installed in the Docker file, but something is not working. Installing within the container results in
Some more polishing is needed. |
Dear Mikhail, Many thanks for letting me know. I am still troubleshooting. The reason why it worked on my side was that parts of the previous built were stored in my Docker cache. This way, my test example worked. Now when running: docker build --no-cache -t ltrpred . I could reproduce the issue and found out that there are issues with the following packages: Skipping 6 packages not available: GenomicRanges, GenomeInfoDb, Biostrings, IRanges, ggbio, biomaRt I am very sorry for the delay, but I hope to be able to create a stable Many thanks and best wishes, |
Guess it can be R/Bioconductor version conflict. Will be waiting. |
Dear Mikhail, I finally managed to develop two types of
I now documented in detail how to install and run both types of docker images here: A minimal example to get you started right away is the following: # retrieve docker image from dockerhub
docker pull drostlab/ltrpred
# run ltrpred container
docker run --rm -ti drostlab/ltrpred
# start R prompt within ltrpred container
~:/app# R Within the ltrpred container R prompt run the LTRpred::LTRpred(genome.file = system.file("Hsapiens_ChrY.fa", package = "LTRpred")) The RStudio variant can be found here: Please accept my apologies for taking a while to implement and deploy these containers, but I wanted to do it properly. I tried many different ways of how users may be able to interact with the containers (how to use local genome files or local versions of the Dfam database) and now came up with the most parsimonious way as is documented here: I hope you find these new versions useful and I very much look forward to hearing your feedback. Thank you so much for all your excellent help with this. I am sure that users will very much appreciate this new style of working with With very best wishes, |
The LTRpred package requires six command-line tools. Each of them has its own dependencies and/or require
sudo
privileges. Testing with Docker containers using different OS versions failed, installation of tools breaks with various errors. Different tools break under different conditions. After hours of attempts, it seems impossible to install all the dependencies to test the package.A Docker file containing all the dependencies and the LTRpred package is needed.
The text was updated successfully, but these errors were encountered: