Skip to content

Commit

Permalink
add ggdendro to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zachary-foster committed Jan 19, 2024
1 parent 2786e17 commit a6f3c68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
14 changes: 1 addition & 13 deletions assets/main_report/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ library(plotly)
library(webshot2)
library(metacoder)
library(psminer)
library(ggdendro)
```

```{r parse_inputs}
Expand Down Expand Up @@ -112,10 +113,6 @@ Perhaps a table with a list of majors steps and a icon next to each for done/que
## Sample plotly/ggtree tree from [here](https://plotly.com/ggplot2/dendrogram/)

```{r}
library(plotly)
library(ggplot2)
library(ggdendro)
model <- hclust(dist(USArrests), "ave")
dhc <- as.dendrogram(model)
Expand All @@ -133,15 +130,6 @@ ggplotly(p)
## {{< bi clipboard-data >}} Input data

```{r}
# samp_data %>%
# select(
# `Sample ID`=sample,
# `Forward Reads`=fastq_1,
# `Reverse Reads`=fastq_2,
# `Reference ID`=reference_id,
# `Reference`=reference) %>%
# DT::datatable()
print_sample_metadata(samp_data, interactive = knitr::is_html_output())
```

Expand Down
1 change: 1 addition & 0 deletions dockerfiles/main-report-r-packages/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ install.r \
plotly \
webshot2 \
metacoder \
ggdendro
EOF

RUN <<EOF
Expand Down
2 changes: 1 addition & 1 deletion modules/local/main_report.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ process MAIN_REPORT {
conda "conda-forge::quarto conda-forge::r-knitr" // TODO: it just uses the local computers R packages for now
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/main-report-r-packages':
'docker.io/zacharyfoster/main-report-r-packages:0.3' }"
'docker.io/zacharyfoster/main-report-r-packages:0.4' }"

input:
tuple val(group_meta), val(ref_metas), file(sendsketchs), file(quast_dirs), file(vcfs), file(snp_aligns), file(snp_phylos), file(ani_matrix), file(core_phylo)
Expand Down

0 comments on commit a6f3c68

Please sign in to comment.