Skip to content

Commit df65712

Browse files
committed
Minor style and bug fixes
1 parent 7af2a61 commit df65712

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

assets/differentialabundance_report.qmd

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ if (!file.exists(file_path)) {
8484
stop("Versions file does not exist at: ", file_path)
8585
}
8686
versions <- unlist(yaml.load_file(file.path(params$input_dir, params$versions_file)), recursive = FALSE)
87-
params_table <- data.frame(Parameter = names(unlist(params)), Value = unlist(params), row.names = NULL)
87+
params_table <- data.frame(Parameter = sub("^meta\\.params\\.", "", names(unlist(params))), Value = unlist(params), row.names = NULL)
8888
8989
# We'll subset the params table for different report sections
9090
make_params_table <- function(name, pattern = NULL, remove_pattern = FALSE){
@@ -114,11 +114,9 @@ report_subtitle <- paste0(ifelse(is.null(params$meta$params$report_author), '',
114114
library(htmltools)
115115
116116
HTML(paste0('
117-
<div style="display:flex; align-items:center; margin-bottom:10px;">
118-
<img src="', file.path(params$input_dir, params$logo), '" style="height:120px;"/>
119-
<div>
120-
<h1 style="margin:0;">', report_title, '</h1>
121-
</div>
117+
<div style="align-items:left; margin-bottom:10px;">
118+
<img src="', file.path(params$input_dir, params$logo), '" style="height:120px; display:block; margin:0; padding:0;"/>
119+
<h1 style="margin:0;">', report_title, '</h1>
122120
</div>
123121
<div>
124122
<h3 style="margin:0; font-weight:bold; font-size:110%; color:black;">', report_subtitle, '</h3>
@@ -725,10 +723,10 @@ for (variable in rownames(pca_vs_meta)){
725723
```
726724

727725
#### Clustering dendrograms
728-
::: {.panel-tabset}
729726

730727
A hierarchical clustering of `{r} params$meta$params$features_type`s was undertaken based on `{r} ifelse(params$meta$params$exploratory_n_features == -1, paste0("all ", params$meta$params$features_type), paste0("the ", params$meta$params$exploratory_n_features, " most variable ", params$meta$params$features_type))`s. Distances between `r params$meta$params$features_type`s were estimated based on `{r} params$meta$params$exploratory_cor_method` correlation, which were then used to produce a clustering via the `{r} params$meta$params$exploratory_clustering_method` method with `hclust()` in R.
731728

729+
::: {.panel-tabset}
732730
```{r, echo=FALSE, results='asis'}
733731
#| echo: false
734732
#| results: asis
@@ -1034,7 +1032,11 @@ if (!is.null(params$meta$params$functional_method)){
10341032
print( htmltools::tagList(
10351033
datatable(target_gsea_results,
10361034
caption = paste0("\nTarget (", gsea_contrasts$target[i], ")\n"),
1037-
rownames = FALSE)
1035+
rownames = FALSE,
1036+
options = list(
1037+
scrollX = TRUE # enables horizontal scrolling
1038+
)
1039+
)
10381040
))
10391041
} else {
10401042
cat("\n*Target GSEA file missing: ", target_gsea_tables[i], "*\n")
@@ -1046,7 +1048,11 @@ if (!is.null(params$meta$params$functional_method)){
10461048
print( htmltools::tagList(
10471049
datatable(ref_gsea_results,
10481050
caption = paste0("\nReference (", gsea_contrasts$reference[i], ")\n"),
1049-
rownames = FALSE)
1051+
rownames = FALSE,
1052+
options = list(
1053+
scrollX = TRUE # enables horizontal scrolling
1054+
)
1055+
)
10501056
))
10511057
} else {
10521058
cat("\n*Reference GSEA file missing: ", reference_gsea_tables[i], "*\n")

assets/nf-core_style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,7 @@ a {
8080
display: inline-block;
8181
box-sizing: border-box;
8282
}
83+
84+
.nav-tabs > li > a {
85+
color: #24b064 !important;
86+
}

0 commit comments

Comments
 (0)