-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add notebook for genome search * input files used for genome nb * add output files produced while running genome nb * new version of the notebook * last version of genome nb and outputs folder reorganised * [wip] prepare genomes nb for merge * fixes spark installation and some minor editorial on genomes notebook * adds task shortcut to build docker locally * use lighter base docker; upgrade jupyter (still <4 though) * updates CI tests * upgrade query params extension to new template --------- Co-authored-by: Sandy Rogers <[email protected]>
- Loading branch information
1 parent
e535ec4
commit 9561e7d
Showing
54 changed files
with
428,243 additions
and
2,838 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
# https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-datascience-notebook | ||
name: mgnify-py-env | ||
channels: | ||
- conda-forge | ||
- nodefaults | ||
dependencies: | ||
- python==3.11 | ||
- pyspark==3.3.2 | ||
- openjdk | ||
- pip | ||
- pip: | ||
- jsonapi-client==0.9.9 | ||
- pandas==1.5.3 | ||
- numpy==1.24.2 | ||
- ipykernel==6.21.3 | ||
- matplotlib==3.7.1 | ||
- seaborn==0.12.2 | ||
- plotly==5.13.1 | ||
- sourmash==4.1.2 | ||
- biopython==1.81 | ||
- pyarrow==11.0.0 | ||
|
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,15 +1,16 @@ | ||
# https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-datascience-notebook | ||
name: mgnify-r-env | ||
channels: | ||
- conda-forge | ||
- bioconda | ||
- nodefaults | ||
dependencies: | ||
- bioconda::bioconductor-phyloseq=1.42.0 | ||
- bioconda::bioconductor-metagenomeSeq=1.40.0 | ||
- bioconda::bioconductor-microbiomeMarker=1.4.0 | ||
- bioconda::bioconductor-siamcat=2.2.0 | ||
- conda-forge::r-reshape2=1.4.4 | ||
- conda-forge::r-vegan=2.6_4 | ||
- conda-forge::r-devtools=2.4.5 | ||
- conda-forge::r-irkernel=1.3.2 | ||
- conda-forge::r-tidyverse=2.0.0 | ||
- conda-forge::r-ggplot2=3.4.1 | ||
- bioconductor-phyloseq=1.42.0 | ||
- bioconductor-metagenomeSeq=1.40.0 | ||
- bioconductor-microbiomeMarker=1.4.0 | ||
- bioconductor-siamcat=2.2.0 | ||
- r-reshape2=1.4.4 | ||
- r-vegan=2.6_4 | ||
- r-devtools=2.4.5 | ||
- r-irkernel=1.3.2 | ||
- r-tidyverse=2.0.0 | ||
- r-ggplot2=3.4.1 |
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,15 +1,17 @@ | ||
FROM jupyter/datascience-notebook:r-4.2.2@sha256:c8c75096f0efe1d7cad07ec97ecdf5c6328a119bf6295269c45065c90b0dde2a | ||
FROM jupyter/minimal-notebook:lab-3.6.3@sha256:1443243e00caa7db61de7faaad626a173c4a51d8f15e48e07c6b111de73d0f38 | ||
LABEL maintainer="EMBL-EBI Microbiome Informatics (MGnify) Team <[email protected]>" | ||
USER root | ||
ENV CHOWN_HOME_OPTS='-R' | ||
ENV CHOWN_HOME='yes' | ||
|
||
# Install Python/R dependencies | ||
COPY dependencies/r-environment.yml /tmp/r-environment.yml | ||
COPY dependencies/py-environment.yml /tmp/py-environment.yml | ||
COPY dependencies/dependencies.R /tmp/dependencies.R | ||
RUN mamba install -y nb_conda_kernels | ||
RUN conda config --system --prepend channels bioconda | ||
COPY dependencies/r-environment.yml /tmp/r-environment.yml | ||
RUN mamba env create -f /tmp/r-environment.yml | ||
COPY dependencies/py-environment.yml /tmp/py-environment.yml | ||
RUN mamba env create -f /tmp/py-environment.yml | ||
COPY dependencies/dependencies.R /tmp/dependencies.R | ||
|
||
SHELL ["conda", "run", "-n", "mgnify-r-env", "/bin/bash", "-c"] | ||
RUN Rscript /tmp/dependencies.R | ||
|
@@ -22,20 +24,21 @@ RUN Rscript /tmp/populate-mgnifyr-cache.R | |
SHELL ["/bin/bash", "-c"] | ||
|
||
# Install JupyterLab extension to handle query parameter > env vars in ShinyProxy | ||
COPY shiny_proxy_jlab_query_parms /tmp/shiny_proxy_jlab_query_parms | ||
RUN pip install /tmp/shiny_proxy_jlab_query_parms | ||
COPY jlab_query_params /tmp/jlab_query_params | ||
RUN pip install /tmp/jlab_query_params | ||
|
||
# Install Jupyter Lab extension providing MGnify-specific help | ||
COPY mgnify_jupyter_lab_ui /tmp/mgnify_jupyter_lab_ui | ||
RUN pip install /tmp/mgnify_jupyter_lab_ui | ||
|
||
# Clean yarn cache else chown'ing home is very slow on container start | ||
RUN jlpm cache clean | ||
RUN rm -rf /home/jovyan/.yarn | ||
RUN rm -rf /home/jovyan/.cache | ||
RUN rm -rf /home/jovyan/.npm | ||
|
||
# Clean tmp | ||
RUN rm -rf /tmp/* | ||
|
||
RUN jupyter kernelspec remove -y julia-1.8 | ||
COPY jupyter_config/custom.js /home/jovyan/.jupyter/custom/custom.js | ||
COPY jupyter_config/jupyter_config.json /home/jovyan/.jupyter/jupyter_config.json | ||
COPY src/notebooks /home/jovyan/mgnify-examples | ||
|
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,20 @@ | ||
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY | ||
_commit: v4.0.10 | ||
_src_path: https://github.com/jupyterlab/extension-template | ||
author_email: [email protected] | ||
author_name: Sandy Rogers | ||
data_format: string | ||
file_extension: '' | ||
has_binder: false | ||
has_settings: false | ||
kind: server | ||
labextension_name: jlab_query_params | ||
mimetype: '' | ||
mimetype_name: '' | ||
project_short_description: JupyterLab extension to set environment variables and support | ||
deep-links via query parameters. | ||
python_name: jlab_query_params | ||
repository: '' | ||
test: false | ||
viewer_name: '' | ||
|
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ node_modules | |
**/node_modules | ||
**/lib | ||
**/package.json | ||
shiny_proxy_jlab_query_parms | ||
!/package.json | ||
jlab_query_params |
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,3 @@ | ||
enableImmutableInstalls: false | ||
|
||
nodeLinker: node-modules |
File renamed without changes.
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,29 @@ | ||
BSD 3-Clause License | ||
|
||
Copyright (c) 2023, Sandy Rogers | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Oops, something went wrong.