-
Notifications
You must be signed in to change notification settings - Fork 137
Simplot-cl 1.0.3 #1602
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
Merged
Merged
Simplot-cl 1.0.3 #1602
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c5e0bcb
Added dockerfile for simplot download and micromamba installations. s…
RaheelSyedAhmed 7e8c5fc
Main README.md, version README.md, and Program License.md updated for…
RaheelSyedAhmed 4496b91
Base changed to python:3.13.12-slim. I was having some trouble with u…
RaheelSyedAhmed 007fcaa
Updated dependencies generated from pip freeze.
RaheelSyedAhmed fef11e3
Added mafft version and removed extra text
erinyoung File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| FROM mambaorg/micromamba:2.5.0-ubuntu24.04 AS app | ||
|
|
||
| ARG SIMPLOT_CL_VER="1.0.3" | ||
|
|
||
| USER root | ||
|
|
||
| WORKDIR / | ||
|
|
||
| LABEL base.image="mambaorg/micromamba:2.5.0-ubuntu24.04" | ||
| LABEL dockerfile.version="1" | ||
| LABEL software="simplot-cl" | ||
| LABEL software.version="${SIMPLOT_CL_VER}" | ||
| LABEL description="A Command-Line Similarity Plot Generator" | ||
| LABEL website="https://github.com/hodcroftlab/simplot-cl/" | ||
| LABEL license="https://github.com/hodcroftlab/simplot-cl/blob/main/LICENSE.txt" | ||
| LABEL maintainer="Raheel Ahmed" | ||
| LABEL maintainer.email="raheelsyedahmed@gmail.com" | ||
|
|
||
| # Standard packages for downloading source code | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| wget \ | ||
| ca-certificates \ | ||
| procps && \ | ||
| apt-get autoclean && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Decompress source code in /opt and llink /opt/simplot-cl-1.0.3 to /usr/local/bin for discovery in python path. | ||
| WORKDIR /opt | ||
|
|
||
| RUN wget -q https://github.com/hodcroftlab/simplot-cl/archive/refs/tags/v${SIMPLOT_CL_VER}.tar.gz && \ | ||
| tar -xzf v${SIMPLOT_CL_VER}.tar.gz && \ | ||
| rm v${SIMPLOT_CL_VER}.tar.gz && \ | ||
| chmod +x /opt/simplot-cl-1.0.3/simplot.py && \ | ||
| ln -s /opt/simplot-cl-${SIMPLOT_CL_VER}/simplot.py /usr/local/bin/simplot.py | ||
|
|
||
| # Install from environment available in source code folder. | ||
| RUN micromamba install --name base -f /opt/simplot-cl-${SIMPLOT_CL_VER}/environment.yml -y && \ | ||
| micromamba clean -a -f -y && \ | ||
| mkdir /data | ||
|
|
||
| # Add micromamba packages to path and set locale. | ||
| ENV PATH="/opt/conda/bin/:${PATH}" \ | ||
| LC_ALL=C.UTF-8 | ||
|
|
||
| WORKDIR /data | ||
|
|
||
| CMD [ "simplot.py", "-h" ] | ||
|
|
||
|
|
||
|
|
||
| FROM app AS test | ||
|
|
||
| ARG SIMPLOT_CL_VER="1.0.3" | ||
|
|
||
| # List micromamba dependencies | ||
| RUN micromamba list -n base | ||
|
|
||
| WORKDIR /test | ||
|
|
||
|
|
||
| # Run simplot help command | ||
| RUN simplot.py -h | ||
|
|
||
| # Generate simplots for queries listed through -q, using all other sequences in the supplied FASTA file as a reference. | ||
| RUN simplot.py \ | ||
| -s /opt/simplot-cl-${SIMPLOT_CL_VER}/demo_data/query_alignment.fasta \ | ||
| -q OP137282.1 JX274981.1 \ | ||
| -ws 150 \ | ||
| -ss 50 \ | ||
| -p simplots \ | ||
| --no-align | ||
|
|
||
| # Generate simplots for all sequences in the supplied FASTA file using all sequences in the reference FASTA as references. | ||
| RUN simplot.py \ | ||
| -s /opt/simplot-cl-${SIMPLOT_CL_VER}/demo_data/query_alignment.fasta \ | ||
| -r /opt/simplot-cl-${SIMPLOT_CL_VER}/demo_data/reference_alignment.fasta \ | ||
| -ws 200 \ | ||
| -ss 100 \ | ||
| -p simplots \ | ||
| --no-align | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
From https://github.com/hodcroftlab/simplot-cl/blob/main/environment.yml, it looks like the micromamba environment is very simple. It looks like it just consists of python packages and mafft. This image would be more stable and smaller without micromamba.
Could you try using the ubuntu:noble base?
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.
Sure, I'll give it a try, and I'll let you know if I run into any issues.
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.
I updated the base to python 3.13.12-slim. File size went from 2.07 GB to 643.58 MB. Ubuntu noble was giving me some issues with pip.