Skip to content

Commit

Permalink
add pyvips for tif file i/o
Browse files Browse the repository at this point in the history
tifffile was having issues with the tif files that were z-stacks
  • Loading branch information
akhanf committed Sep 28, 2024
1 parent 16ddd53 commit 2c86cef
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 6 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ ENV LANG C.UTF-8
ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0-amazon-corretto


#install maven hdf5-tools deps, 7zip (for zarr zipstore archiving)
RUN apt-get update && apt-get install -y maven hdf5-tools libblosc-dev p7zip-full libxtst-dev && mkdir -p /opt/bin
#install maven hdf5-tools deps, 7zip (for zarr zipstore archiving), libvips
RUN apt-get update && apt-get install -y maven hdf5-tools libblosc-dev p7zip-full libxtst-dev libvips-dev && mkdir -p /opt/bin

ENV PATH $PATH:/opt/bin

Expand Down Expand Up @@ -83,10 +83,9 @@ FROM python as runtime
COPY --from=itksnap /opt/itksnap-mini/* /opt/bin


#install pythondeps (including ome-zarr separately, having issues with including it in pyproject - also use master branch
#to get latest fixes for omero metadata)
#install pythondeps
COPY . /opt/pythondeps
RUN pip install --no-cache-dir /opt/pythondeps && pip install --no-cache-dir git+https://github.com/ome/ome-zarr-py@master
RUN pip install --no-cache-dir /opt/pythondeps


ENTRYPOINT ["/bin/bash", "-l", "-c"]
Expand Down
125 changes: 124 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ s3fs = "^2024.3.1"
universal-pathlib = "^0.2.2"
google-cloud-iam = "^2.15.1"
bokeh = "^3.5.2"
ome-zarr = "^0.9.0"
pyvips = "^2.2.3"


[build-system]
Expand Down

0 comments on commit 2c86cef

Please sign in to comment.