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

Add heatcluster #244

Closed
erinyoung opened this issue Oct 24, 2023 · 4 comments
Closed

Add heatcluster #244

erinyoung opened this issue Oct 24, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@erinyoung
Copy link
Member

Heatcluster is a useful tool for visualizing SNP matrices.

https://github.com/DrB-S/HeatCluster

To add Heatcluster
[ ] HeatCluster needs to be put in a container
[ ] There needs to be a new process for running HeatCluster (needs the HeatCluster container)
[ ] The results from SNP-dists need to be put into a channel
[ ] That channel needs to put the SNP-dists output to the Heatcluster process
[ ] The output of the HeatCluster process needs to be put into a channel
[ ] The results from HeatCluster need to go to the MultiQC process

@erinyoung
Copy link
Member Author

#241 is a related PR.

@erinyoung erinyoung added the enhancement New feature or request label Oct 31, 2023
@erinyoung
Copy link
Member Author

Closed by #254

@DrB-S
Copy link
Contributor

DrB-S commented Nov 17, 2023

I have updated the Dockerfile for heatcluster:0.4.12, and have deposited the latest docker image on ghcr.io. See:

$ docker images |grep heatcluster
heatcluster 0.4.12 8e2924956336 13 minutes ago 470MB
ghcr.io/drb-s/heatcluster 0.4.12 8e2924956336 13 minutes ago 470MB

Does this give you the information you need to grab the docker image?

@DrB-S
Copy link
Contributor

DrB-S commented Nov 17, 2023

Dockerfile.txt

FROM ubuntu:jammy as app
ARG HEATCLUSTER_VER="0.4.12"

LABEL base.image="ubuntu:jammy"
LABEL dockerfile.version="1"
LABEL software="HeatCluster"
LABEL software.version="${HEATCLUSTER_VER}"
LABEL version="${HEATCLUSTER_VER}"
LABEL description="Visualize SNP matrix from snp-dists output"
LABEL website="https://github.com/DrB-S/heatcluster"
LABEL license="https://github.com/DrB-S/heatcluster/blob/master/LICENSE"
LABEL name="heatcluster/${HEATCLUSTER_VER}"
LABEL maintainer="Stephen Beckstrom-Sternberg"
LABEL maintainer.email="[email protected]"

RUN echo "Installing python and pip" && echo
RUN apt-get update && apt-get install -y --no-install-recommends
ca-certificates
wget
procps
python3
python3-pip &&
apt-get autoclean && rm -rf /var/lib/apt/lists/*

RUN echo "Installing python packages" && echo
RUN pip3 install --no-cache argparse pandas numpy pathlib seaborn matplotlib scipy --upgrade-strategy=only-if-needed

RUN pwd && ls -la

RUN echo "Installing heatcluster from archive: " && echo
RUN wget -q https://github.com/DrB-S/heatcluster/archive/refs/tags/v${HEATCLUSTER_VER}.tar.gz &&
tar -vxf v${HEATCLUSTER_VER}.tar.gz &&
pwd && ls -latr &&
rm v${HEATCLUSTER_VER}.tar.gz &&
cd heatcluster-${HEATCLUSTER_VER} && ls -la

ENV PATH="/heatcluster-${HEATCLUSTER_VER}:$PATH"
LC_ALL=C

RUN pwd; ls -la
WORKDIR /heatcluster-${HEATCLUSTER_VER}

FROM app as test

RUN echo && echo "Show heatcluster version number and help file: " && echo
RUN heatcluster.py --version && echo &&
heatcluster.py --help

RUN echo && echo "Test a small and medium matrix :" && echo && echo &&
heatcluster.py -i test/small_matrix.csv -t png -o small &&
heatcluster.py -i test/med_matrix.txt -t png -o med

RUN echo && ls -lh|tail && echo "DONE"

WORKDIR /heatcluster-${HEATCLUSTER_VER}
CMD [ "/bin/ls", "-l" ]

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

No branches or pull requests

2 participants