-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from BIOP/update_desktop
biop-desktop to 0.1.0
- Loading branch information
Showing
23 changed files
with
501 additions
and
65 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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,42 @@ | ||
ARG BASE_IMAGE=0.0.3 | ||
ARG ALIAS=biop/ | ||
|
||
|
||
FROM ${ALIAS}biop-vnc-base:${BASE_IMAGE} | ||
|
||
|
||
USER root | ||
|
||
# install celldetection and download models ( https://celldetection.readthedocs.io/en/latest/models.html ) | ||
COPY celldetection/env_celldetection.yml /tmp/env_celldetection.yml | ||
RUN conda env update -n celldetection -f /tmp/env_celldetection.yml \ | ||
&& conda clean --all -f -y \ | ||
&& conda env export -n "biop" \ | ||
&& rm /tmp/env_celldetection.yml | ||
|
||
# get model | ||
RUN mkdir -p /home/biop/.cache/torch/hub/checkpoints/ | ||
RUN wget https://celldetection.org/torch/models/ginoro_CpnResNeXt101UNet-fbe875f1a3e5ce2c.pt -O /home/biop/.cache/torch/hub/checkpoints/ginoro_CpnResNeXt101UNet-fbe875f1a3e5ce2c.pt | ||
RUN wget https://celldetection.org/torch/models/.pt -O /home/biop/.cache/torch/hub/checkpoints/.pt | ||
|
||
RUN mkdir -p /home/biop/celldetection/ \ | ||
&& chown -R biop:biop /home/biop/ \ | ||
&& chmod -R a+rwX /home/biop/ | ||
|
||
COPY celldetection/start_celldetection.sh /opt/celldetection/start_celldetection.sh | ||
COPY napari/napari-icon.ico /opt/celldetection/napari-icon.ico | ||
|
||
RUN printf '[Desktop Entry]\nVersion=0.0.1\nName=celldetection\nGenericName=celldetection\nX-GNOME-FullName=celldetection\nComment=Scientific Image Analysis\nType=Application\nCategories=Education;Science;ImageProcessing;\nExec=/opt/celldetection/start_celldetection.sh\nTryExec==/opt/celldetection/start_celldetection.sh\nTerminal=true\nStartupNotify=true\nMimeType=image/*;\nIcon=/opt/celldetection/napari-icon.ico\nStartupWMClass=celldetection\n' > /home/biop/Desktop/celldetection.desktop \ | ||
&& chown -R biop:biop /home/biop \ | ||
&& chmod +x /home/biop/Desktop/celldetection.desktop | ||
|
||
|
||
RUN chmod -R a+rwX /home/biop/ \ | ||
&& chown -R biop:biop /home/biop/ | ||
|
||
################################################################# | ||
# Container start | ||
USER biop | ||
WORKDIR /home/biop | ||
ENTRYPOINT ["/usr/local/bin/jupyter"] | ||
CMD ["lab", "--allow-root", "--ip=*", "--port=8888", "--no-browser", "--NotebookApp.token=''", "--NotebookApp.allow_origin='*'", "--notebook-dir=/home/biop"] |
This file contains 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,19 @@ | ||
name: "celldetection" | ||
channels: | ||
- pytorch | ||
- nvidia | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python=3.9 | ||
- pytorch | ||
- pyqt | ||
- napari | ||
- torchvision | ||
- pytorch-cuda=11.8 | ||
- pip | ||
- pip : | ||
- celldetection | ||
- git+https://github.com/FZJ-INM1-BDA/celldetection-napari.git | ||
- ipykernel | ||
prefix: "/opt/conda/envs/celldetection" |
This file contains 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,4 @@ | ||
source activate celldetection | ||
napari | ||
$ read -rsp $'Press enter to continue...\n' | ||
Press enter to continue... |
This file contains 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 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 |
---|---|---|
@@ -1,14 +1,21 @@ | ||
name: "empanada" | ||
channels: | ||
- ome | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python=3.9 | ||
- ome::zeroc-ice36-python | ||
- ipykernel | ||
- napari | ||
- conda-forge::omero-py | ||
- pyqt | ||
- pip | ||
- pip: | ||
- napari[all] | ||
- empanada-napari==0.2.3 | ||
- empanada-napari==1.1.0 | ||
- scikit-image | ||
- napari-ome-zarr | ||
- ome-zarr | ||
- napari-omero | ||
prefix: "/opt/conda/envs/empanada" | ||
#TODO napari-ome-zarr |
This file contains 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 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,14 @@ | ||
{ | ||
"argv": [ | ||
"/opt/conda/envs/brainrender/bin/python", | ||
"-m", | ||
"ipykernel_launcher", | ||
"-f", | ||
"{connection_file}" | ||
], | ||
"display_name": "brainrender", | ||
"language": "python", | ||
"metadata": { | ||
"debugger": true | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.