-
Notifications
You must be signed in to change notification settings - Fork 125
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 #780 from Kincekara/pavian
adds Pavian
- Loading branch information
Showing
4 changed files
with
69 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM rocker/shiny:4.1.0 as app | ||
|
||
ARG SOFTWARENAME_VER="1.2.1" | ||
|
||
LABEL base.image="rocker/shiny:4.1.0" | ||
LABEL dockerfile.version="1" | ||
LABEL software="Pavian" | ||
LABEL software.version="${SOFTWARENAME_VER}" | ||
LABEL description="Interactive analysis of metagenomics data for microbiome studies and pathogen identification." | ||
LABEL website="https://github.com/fbreitwieser/pavian" | ||
LABEL license="https://github.com/fbreitwieser/pavian/blob/master/DESCRIPTION" | ||
LABEL maintainer="Kutluhan Incekara" | ||
LABEL maintainer.email="[email protected]" | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
liblzma-dev \ | ||
libbz2-dev &&\ | ||
apt-get autoclean && rm -rf /var/lib/apt/lists/* | ||
|
||
# based on https://github.com/fbreitwieser/pavian/blob/master/inst/docker/Dockerfile by Florian Breitwieser | ||
RUN R -e "install.packages('BiocManager', version = 3.13 , clean = TRUE); BiocManager::install('Rsamtools', ask=FALSE)" &&\ | ||
R -e "install.packages('remotes', clean = TRUE);remotes::install_github('fbreitwieser/pavian@750a18073bae3c443d8b9465d8d6e997595788be', clean = TRUE)" &&\ | ||
rm -rf /srv/shiny-server/* &&\ | ||
R -e "sapply(list.files(system.file('shinyapp',package='pavian'),full.names=TRUE),file.copy,to='/srv/shiny-server/',recursive=TRUE)" | ||
|
||
EXPOSE 3838 | ||
|
||
CMD ["/usr/bin/shiny-server"] | ||
|
||
ENV LC_ALL=C | ||
|
||
WORKDIR /data | ||
|
||
## Test ## | ||
FROM app as test | ||
|
||
CMD ["/bin/bash"] | ||
|
||
RUN R -e "installed.packages()" > test.log &&\ | ||
cat test.log |
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,27 @@ | ||
|
||
# Pavian container | ||
|
||
Main tool: [Pavian](https://github.com/fbreitwieser/pavian) | ||
|
||
Code repository: https://github.com/fbreitwieser/pavian | ||
|
||
Additional tools: | ||
- R: 4.1.0 | ||
|
||
Basic information on how to use this tool: | ||
|
||
Pavian is a interactive browser application for analyzing and visualization metagenomics classification results from classifiers such as Kraken, KrakenUniq, Kraken 2, Centrifuge and MetaPhlAn. It also provides an alignment viewer for validation of matches to a particular genome. | ||
|
||
![image](https://cloud.githubusercontent.com/assets/516060/20188595/5c8b9808-a747-11e6-9235-296a2314659a.png) | ||
|
||
Full documentation: https://github.com/fbreitwieser/pavian | ||
|
||
## Example Usage | ||
You should publish a container's port(s) to the host while running pavian. | ||
```bash | ||
# run as root | ||
docker run --rm -p 3838:3838 staphb/pavian:1.2.1 | ||
# non-root | ||
docker run --rm --user shiny -p 3838:3838 staphb/pavian:1.2.1 | ||
``` | ||
Pavian will then be available at http://127.0.0.1:3838 in your web browser |