-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,096 additions
and
254 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,42 @@ | ||
# DOCKER FILE FOR WORKSHOP-NGSINTRO | ||
# 2024 Roy Francis | ||
# 2025 Roy Francis | ||
|
||
FROM rocker/verse:4.2.3 | ||
FROM rocker/verse:4.4 | ||
LABEL Description="Docker image for NBIS workshop" | ||
LABEL Maintainer="[email protected]" | ||
LABEL org.opencontainers.image.source="https://github.com/NBISweden/workshop-ngsintro" | ||
ARG QUARTO_VERSION="1.4.549" | ||
#ARG QUARTO_VERSION="1.6.40" | ||
|
||
RUN apt-get update -y \ | ||
&& apt-get clean \ | ||
&& apt-get install --no-install-recommends -y \ | ||
libxml2-dev \ | ||
libssl-dev \ | ||
libcurl4-openssl-dev \ | ||
libudunits2-dev \ | ||
libopenblas-base \ | ||
libgdal-dev \ | ||
curl \ | ||
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \ | ||
&& apt-get install -y ./google-chrome-stable_current_amd64.deb \ | ||
&& rm -rf ./google-chrome-stable_current_amd64.deb \ | ||
&& curl -o quarto-linux-amd64.deb -L https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.deb \ | ||
&& apt-get install -y ./quarto-linux-amd64.deb \ | ||
&& rm -rf ./quarto-linux-amd64.deb \ | ||
&& Rscript -e 'install.packages(c("remotes","fontawesome","here","htmlTable","leaflet","readxl","writexl"),repos = "http://cran.us.r-project.org");' \ | ||
#&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \ | ||
#&& apt-get install -y ./google-chrome-stable_current_amd64.deb \ | ||
#&& rm -rf ./google-chrome-stable_current_amd64.deb \ | ||
#&& curl -o quarto-linux-amd64.deb -L https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.deb \ | ||
#&& apt-get install -y ./quarto-linux-amd64.deb \ | ||
#&& rm -rf ./quarto-linux-amd64.deb \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& install2.r --error --skipinstalled remotes fontawesome here htmlTable leaflet readxl writexl \ | ||
&& rm -rf /tmp/downloaded_packages \ | ||
&& mkdir /qmd /.cache \ | ||
&& chmod 777 /qmd /.cache | ||
|
||
## Required when editing rnaseq | ||
## RUN Rscript -e 'BiocManager::install(c("DESeq2","edgeR","goseq","GO.db","org.Mm.eg.db","reactome.db"));' | ||
USER rstudio | ||
|
||
## Required when editing rnaseq lab | ||
RUN Rscript -e 'install.packages(c("pheatmap","ggrepel"),repos = "http://cran.us.r-project.org"); BiocManager::install(c("DESeq2", "edgeR", "org.Mm.eg.db", "clusterProfiler"));' | ||
|
||
WORKDIR /qmd | ||
#ENV XDG_CACHE_HOME=/tmp/quarto_cache_home | ||
#ENV XDG_DATA_HOME=/tmp/quarto_data_home | ||
CMD quarto render | ||
CMD ["quarto", "render"] | ||
|
||
# docker build --platform linux/amd64 -t ghcr.io/nbisweden/workshop-ngsintro:2.3.0 -t ghcr.io/nbisweden/workshop-ngsintro:latest . | ||
# docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/work kaczmarj/apptainer build ngsintro.sif docker://ghcr.io/nbisweden/workshop-ngsintro:latest |
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,10 +1,12 @@ | ||
```{r} | ||
#| echo: false | ||
icons <- awesomeIcons(icon = dfr2$marker_icon, markerColor = dfr2$marker_color, iconColor = "#FFFFFF", library = "fa") | ||
htmltools::div( | ||
style = "margin-bottom:1em;", | ||
htmltools::tagList(leaflet(height = 450, width = "auto", elementId = paste0("leaflet-", p)) %>% | ||
addTiles(urlTemplate = "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png") %>% | ||
addAwesomeMarkers(lat = dfr2$lat, lng = dfr2$lon, label = dfr2$label, popup = dfr2$popup, icon = icons) %>% | ||
setView(lat = dfr2$lat[1], lng = dfr2$lon[1], zoom = 13)) | ||
) | ||
``` | ||
``` |
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,20 @@ | ||
-- Fold output from code chunks | ||
-- In code chunk, add #| attr.output: '.details summary="Output"' | ||
-- Only works for knitr chunks | ||
-- https://gist.github.com/atusy/f2b5b992e45c68ab6823499f2339c6e6 | ||
|
||
function CodeBlock(elem) | ||
if elem.classes and elem.classes:find("details") then | ||
local summary = "Code" | ||
if elem.attributes.summary then | ||
summary = elem.attributes.summary | ||
end | ||
return{ | ||
pandoc.RawBlock( | ||
"html", "<details><summary>" .. summary .. "</summary>" | ||
), | ||
elem, | ||
pandoc.RawBlock("html", "</details>") | ||
} | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.