Skip to content

Commit ffbf84a

Browse files
authored
Merge pull request #249 from qbic-pipelines/dev
Release 2.4
2 parents 163c7ee + 73a712a commit ffbf84a

File tree

8 files changed

+39
-15
lines changed

8 files changed

+39
-15
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ jobs:
3939
environment.yml
4040
- name: Build new docker image
4141
if: env.MATCHED_FILES
42-
run: docker build --no-cache . -t ghcr.io/qbic-pipelines/rnadeseq:2.3
42+
run: docker build --no-cache . -t ghcr.io/qbic-pipelines/rnadeseq:2.4
4343

4444
# Change the version above and the third version below before/after release
4545
- name: Pull docker image
4646
if: ${{ !env.MATCHED_FILES }}
4747
run: |
4848
docker pull ghcr.io/qbic-pipelines/rnadeseq:dev
49-
docker tag ghcr.io/qbic-pipelines/rnadeseq:dev ghcr.io/qbic-pipelines/rnadeseq:2.3
49+
docker tag ghcr.io/qbic-pipelines/rnadeseq:dev ghcr.io/qbic-pipelines/rnadeseq:2.4
5050
5151
- name: Install Nextflow
5252
uses: nf-core/setup-nextflow@v1
@@ -93,14 +93,14 @@ jobs:
9393
environment.yml
9494
- name: Build new docker image
9595
if: env.MATCHED_FILES
96-
run: docker build --no-cache . -t ghcr.io/qbic-pipelines/rnadeseq:2.3
96+
run: docker build --no-cache . -t ghcr.io/qbic-pipelines/rnadeseq:2.4
9797

9898
# Change the version above and the third version below before/after release
9999
- name: Pull docker image
100100
if: ${{ !env.MATCHED_FILES }}
101101
run: |
102102
docker pull ghcr.io/qbic-pipelines/rnadeseq:dev
103-
docker tag ghcr.io/qbic-pipelines/rnadeseq:dev ghcr.io/qbic-pipelines/rnadeseq:2.3
103+
docker tag ghcr.io/qbic-pipelines/rnadeseq:dev ghcr.io/qbic-pipelines/rnadeseq:2.4
104104
105105
- name: Install Nextflow
106106
uses: nf-core/setup-nextflow@v1

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6+
## 2.4 - A Pair of Shoes
7+
8+
### Added
9+
10+
- [#245](https://github.com/qbic-pipelines/rnadeseq/pull/245) Added background gene list to pathway analysis output
11+
12+
### Changed
13+
14+
- [#249](https://github.com/qbic-pipelines/rnadeseq/pull/249) Release 2.4
15+
- [#248](https://github.com/qbic-pipelines/rnadeseq/pull/248) Version bumps for release 2.4
16+
- [#247](https://github.com/qbic-pipelines/rnadeseq/pull/247) Changed the report text that shows when the gprofiler GMT file could not be downloaded
17+
18+
### Removed
19+
20+
- [#247](https://github.com/qbic-pipelines/rnadeseq/pull/247) Removed hard-coded comment about usage of gprofiler databases KEGG and REAC in the report
21+
622
## 2.3 - Flowering Orchards
723

824
### Added

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ LABEL org.opencontainers.image.authors="Gisela Gabernet, Alexander Peltzer, Oska
55
LABEL org.opencontainers.image.licenses=MIT
66
COPY environment.yml /
77
#RUN conda install -c conda-forge mamba
8-
RUN mamba env create --file /environment.yml -p /opt/conda/envs/qbic-pipelines-rnadeseq-2.3 && \
8+
RUN mamba env create --file /environment.yml -p /opt/conda/envs/qbic-pipelines-rnadeseq-2.4 && \
99
mamba clean --all --yes
1010
RUN apt-get update -qq && \
1111
apt-get install -y zip procps ghostscript
1212
# Add conda installation dir to PATH
13-
ENV PATH /opt/conda/envs/qbic-pipelines-rnadeseq-2.3/bin:$PATH
13+
ENV PATH /opt/conda/envs/qbic-pipelines-rnadeseq-2.4/bin:$PATH
1414
# Dump the details of the installed packates to a file for posterity
15-
RUN mamba env export --name qbic-pipelines-rnadeseq-2.3 > qbic-pipelines-rnadeseq-2.3.yml
15+
RUN mamba env export --name qbic-pipelines-rnadeseq-2.4 > qbic-pipelines-rnadeseq-2.4.yml
1616
# Instruct R processes to use these empty files instead of clashing with a local config
1717
RUN touch .Rprofile
1818
RUN touch .Renviron

assets/RNAseq_report.Rmd

+11-3
Original file line numberDiff line numberDiff line change
@@ -1969,13 +1969,15 @@ if (isProvided(params$datasources)) {
19691969
min_DEG_pathway <- as.integer(params$min_DEG_pathway)
19701970
19711971
# If background list is to be used, load custom background list
1972-
# if provided, else use notAllZero
1972+
# if provided, else use notAllZero -->then save to output
19731973
if (isProvided(params$set_background)) {
19741974
if (isProvided(params$custom_background)) {
19751975
custom_background <- readLines(params$custom_background)
19761976
} else {
19771977
custom_background <- rownames(counts(cds))[notAllZero]
19781978
}
1979+
dir.create("pathway_analysis/metadata")
1980+
write.table(custom_background, "pathway_analysis/metadata/custom_background.txt", quote=F, row.names = F, col.names = F)
19791981
}
19801982
19811983
# Contrast files
@@ -2368,14 +2370,20 @@ if (isProvided(params$path_genelist)){
23682370

23692371
```{r pathway_analysis, echo=FALSE, results='asis', eval=params$pathway_analysis}
23702372
2373+
if (isProvided(params$set_background)) {
2374+
background_list_text <- "The background gene list used for pathway analysis is saved [here](./pathway_analysis/metadata/custom_background.txt)"
2375+
} else {
2376+
background_list_text <- ""
2377+
}
2378+
23712379
if (mv_status) {
23722380
if (isProvided(params$custom_gmt)) {
23732381
gost_text <- "A custom GMT file was provided for the gost query; it is saved [here](./pathway_analysis/metadata). In case this GMT file contained entries from datasources other than the selected ones, it was filtered and the resulting filtered GMT was used for querying. The filtered version is also saved to the metadata folder."
23742382
} else {
23752383
gost_text <- "A GMT file corresponding to the current gprofiler database version was downloaded to allow for reproducing the gost query; it is saved [here](./pathway_analysis/metadata). Note that the downloaded GMT contains entries from various datasources, not just the selected ones. Also, some datasources might be missing from the files due to licensing reasons."
23762384
}
23772385
} else {
2378-
gost_text <- paste0("Failed to fetch the GMT file of the current gprofiler database with this URL: ", gmt_url, ". For reproducibility reasons, try to download the GMT file manually by visiting https://biit.cs.ut.ee/gprofiler/gost, then selecting the correct organism and finally, in datasources, clicking 'combined ENSG.gmt'.")
2386+
gost_text <- paste0("The GMT file of the current gprofiler database could not be downloaded with this URL: ", gmt_url, ". For reproducibility reasons, try to download the GMT file manually by visiting https://biit.cs.ut.ee/gprofiler/gost, then selecting the correct organism and finally, in datasources, clicking 'combined ENSG.gmt'.")
23792387
}
23802388
23812389
# The following details block creates a collapsible explaining the output folders/files
@@ -2404,7 +2412,7 @@ gost_text,
24042412
"\n
24052413
## Enriched pathways
24062414
The plot below summarizes the pathways that were found significantly enriched in DE genes for each contrast (padj value <= ", pval_text, ").
2407-
Only contrasts for which an enriched pathway was found are shown. Both KEGG pathways and REACTOME (REAC) pathways are considered.
2415+
Only contrasts for which an enriched pathway was found are shown.
24082416
Hover over the dots to reveal the pathway names. The table below provides more detail on all enriched pathways."))
24092417
```
24102418

docs/usage.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ The `qbic-pipelines/rnadeseq` pipeline relies on the output from the `nf-core/rn
8989
The typical command for running the pipeline is as follows:
9090

9191
```bash
92-
nextflow run qbic-pipelines/rnadeseq -r 2.3 -profile docker \
92+
nextflow run qbic-pipelines/rnadeseq -r 2.4 -profile docker \
9393
--gene_counts 'merged_gene_counts.txt' \
9494
--input 'QXXXX_sample_preparations.tsv' \
9595
--model 'linear_model.txt' \
@@ -157,7 +157,7 @@ curl https://codeload.github.com/qbic-pipelines/rnadeseq/tar.gz/master | tar -xz
157157
Afterwards, you should be able to also run test_star_rsem and test_star_salmon from qbic-pipelines/rnadeseq without manually cloning, e.g.:
158158

159159
```bash
160-
nextflow run qbic-pipelines/rnadeseq -r 2.3 -profile docker,test_star_salmon
160+
nextflow run qbic-pipelines/rnadeseq -r 2.4 -profile docker,test_star_salmon
161161
```
162162

163163
### Reproducibility

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# You can use this file to create a conda environment for this pipeline:
22
# conda env create -f environment.yml
33
# use this to find packages: https://anaconda.org/
4-
name: qbic-pipelines-rnadeseq-2.3
4+
name: qbic-pipelines-rnadeseq-2.4
55
channels:
66
- bioconda
77
- conda-forge

modules/local/report.nf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
process REPORT {
22

3-
container 'ghcr.io/qbic-pipelines/rnadeseq:2.3'
3+
container 'ghcr.io/qbic-pipelines/rnadeseq:2.4'
44

55
input:
66
path gene_counts

nextflow.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ manifest {
276276
description = """Differential gene expression analysis and pathway analysis of RNAseq data"""
277277
mainScript = 'main.nf'
278278
nextflowVersion = '!>=23.04.0'
279-
version = '2.3'
279+
version = '2.4'
280280
doi = ''
281281
}
282282

0 commit comments

Comments
 (0)