Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.3 - This time for real #244

Merged
merged 6 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .nf-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ lint:
- params.custom_config_base
- params.report_file
- params.references_file
- params.css
- params.logo

multiqc_config:
- report_comment # otherwise throws error: multiqc_config: 'assets/multiqc_config.yml' does not contain a matching 'report_comment'.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 2.3
## 2.3 - Flowering Orchards

### Added

Expand All @@ -15,11 +15,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- [#243](https://github.com/qbic-pipelines/rnadeseq/pull/243) Release 2.3 to master, part II (found a bug before actual release)
WackerO marked this conversation as resolved.
Show resolved Hide resolved
- [#237](https://github.com/qbic-pipelines/rnadeseq/pull/237) Changed geom_jitter to geom_point for volcano plot so that points are accurate
- [#233](https://github.com/qbic-pipelines/rnadeseq/pull/233) Release 2.3 to master, part I
- [#225](https://github.com/qbic-pipelines/rnadeseq/pull/225) Shortened names of some output files

### Fixed

- [#243](https://github.com/qbic-pipelines/rnadeseq/pull/243) Fix missing QBiC logo and css styling in report by adding logo/css params
- [#242](https://github.com/qbic-pipelines/rnadeseq/pull/242) Fix path issue in report by adding report_file/references_file params
- [#241](https://github.com/qbic-pipelines/rnadeseq/pull/241) Undo fix branch protection bug in order to get precommit test to run
- [#240](https://github.com/qbic-pipelines/rnadeseq/pull/240) Fix branch protection bug --> third attempt
- [#239](https://github.com/qbic-pipelines/rnadeseq/pull/239) Fix branch protection bug --> second attempt
Expand All @@ -32,7 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#225](https://github.com/qbic-pipelines/rnadeseq/pull/225) Fixed too many devices error from tryCatch around normalized heatmaps
- [#221](https://github.com/qbic-pipelines/rnadeseq/pull/221) Fixed non-conformable arrays bug, fix wrong volcano colors when no DE genes

## 2.2 Avenue of Poplars
## 2.2 - Avenue of Poplars

### Added

Expand Down
10 changes: 8 additions & 2 deletions assets/RNAseq_report.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ params:
path_quote: ''
path_software_versions: ''
revision: ''
logo: ''

#Additional arg to indicate that a github test is run
citest: ''
Expand Down Expand Up @@ -301,7 +302,12 @@ author: "`r PM`, Bioinformatics Research Scientist"
date: '`r format(Sys.Date(), "%B %d, %Y")`'
---

<img src="./logo.png" style="position:absolute;top:0px;right:0px;" height="200" width="200" />
```{r logo, echo=FALSE, results='asis'}
logo_file = file.path(getwd(), "logo.png")
img_data <- base64enc::dataURI(file = logo_file, mime = "image/png") # Need to use base64 because the logo will otherwise for some reason not be loaded correctly
cat(sprintf('<img src="%s" style="position:absolute;top:0px;right:0px;" height="200" width="200" />', img_data))
```

<div class="watermark">QBiC</div>

```{r docSetup, bootstrap.show.code = FALSE, dev = c('png'), bootstrap.show.message=FALSE, echo=FALSE, message=FALSE, warning=FALSE}
Expand Down Expand Up @@ -1027,7 +1033,7 @@ if (mqc_version == 'old_mqc') {
table_complete <- table_complete %>%
mutate(
Sample = Sample,
ReadNumber = round((ReadNumber/1000000),2),
ReadNumber = color_bar("lightblue")(round((ReadNumber/1000000),2)),
DuplicateReadsIntercept = ifelse(DuplicateReadsIntercept > 1,
cell_spec(DuplicateReadsIntercept, color="orange", bold=T),
cell_spec(DuplicateReadsIntercept, color="black")),
Expand Down
2 changes: 2 additions & 0 deletions bin/Execute_report.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ option_list = list(
make_option(c("--path_quote"), type="character", default=NULL, help="Path to the quote PDF", metavar="character"),
make_option(c("-v", "--software_versions"), type="character", default=NULL, help="Versions file", metavar="character"),
make_option(c("-j", "--revision"), type="character", default=NULL, help="Rnadeseq workflow revision", metavar="character"),
make_option("--logo", type="character", default=NULL, help="Logo image file", metavar="character"),

make_option("--citest", action="store_true", default=FALSE, help="Run github test and don't save pathway heatmaps.")
)
Expand Down Expand Up @@ -93,5 +94,6 @@ rmarkdown::render(opt$report, output_file = opt$output, knit_root_dir = wd, outp
path_quote = opt$path_quote,
path_software_versions = opt$software_versions,
revision = opt$revision,
logo = opt$logo,

citest = opt$citest))
3 changes: 3 additions & 0 deletions modules/local/report.nf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ process REPORT {
path custom_background
path report_file
path references_file
path css
path logo

output:
path "*.zip"
Expand Down Expand Up @@ -89,6 +91,7 @@ process REPORT {
$software_versions_opt \
--proj_summary $proj_summary \
--revision $workflow.manifest.version \
--logo $logo \
$citest_opt

# Remove allgenes dir as the contained files do not contain only DE genes
Expand Down
2 changes: 2 additions & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ params {
software_versions = 'NO_FILE6'
report_file = "$projectDir/assets/RNAseq_report.Rmd"
references_file = "$projectDir/assets/references.bibtex"
css = "$projectDir/assets/corp-styles.css"
logo = "$projectDir/assets/logo.png"

// Additional arg to indicate that a github test is run
citest = false
Expand Down
10 changes: 10 additions & 0 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,16 @@
"type": "string",
"default": "${projectDir}/assets/references.bibtex",
"description": "Reference bibtex file for the report, should not be changed."
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it a variable if it shouldn't be changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was apparently some nextflow change; now it seems the files in assets/ cannot be accessed by processes unless they are provided to the respective module as channels.

"css": {
"type": "string",
"default": "${projectDir}/assets/corp-styles.css",
"description": "Stylesheet css file for the report, should not be changed."
},
"logo": {
"type": "string",
"default": "${projectDir}/assets/logo.png",
"description": "QBiC logo png file for the report, should not be changed."
}
}
},
Expand Down
6 changes: 5 additions & 1 deletion workflows/rnadeseq.nf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ ch_proj_summary_file = Channel.fromPath(params.project_summary)
ch_softwareversions_file = Channel.fromPath(params.software_versions)
ch_report_file = Channel.fromPath(params.report_file)
ch_references_file = Channel.fromPath(params.references_file)
ch_css = Channel.fromPath(params.css)
ch_logo = Channel.fromPath(params.logo)

/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -78,7 +80,9 @@ workflow RNADESEQ {
ch_custom_gmt,
ch_custom_background,
ch_report_file,
ch_references_file
ch_references_file,
ch_css,
ch_logo
)

//TODO: Enable this:
Expand Down
Loading