Skip to content

Commit

Permalink
Merge pull request #80 from qbic-pipelines/release
Browse files Browse the repository at this point in the history
Release1.3.1
  • Loading branch information
ggabernet authored Sep 30, 2020
2 parents 20700da + 16152d6 commit 7d3a1e7
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
- name: Build new docker image
if: env.GIT_DIFF
run: docker build --no-cache . -t qbicpipelines/rnadeseq:1.3.0
run: docker build --no-cache . -t qbicpipelines/rnadeseq:1.3.1

- name: Pull docker image
if: ${{ !env.GIT_DIFF }}
run: |
docker pull qbicpipelines/rnadeseq:dev
docker tag qbicpipelines/rnadeseq:dev qbicpipelines/rnadeseq:1.3.0
docker tag qbicpipelines/rnadeseq:dev qbicpipelines/rnadeseq:1.3.1
- name: Install Nextflow
run: |
Expand Down Expand Up @@ -69,13 +69,13 @@ jobs:
- name: Build new docker image
if: env.GIT_DIFF
run: docker build --no-cache . -t qbicpipelines/rnadeseq:1.3.0
run: docker build --no-cache . -t qbicpipelines/rnadeseq:1.3.1

- name: Pull docker image
if: ${{ !env.GIT_DIFF }}
run: |
docker pull qbicpipelines/rnadeseq:dev
docker tag qbicpipelines/rnadeseq:dev qbicpipelines/rnadeseq:1.3.0
docker tag qbicpipelines/rnadeseq:dev qbicpipelines/rnadeseq:1.3.1
- name: Install Nextflow
run: |
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# qbic-pipelines/rnadeseq: Changelog

## 1.3.1 - Almond Blossoms hotfix

### Added

- Bump versions to 1.3.1

### Fixed

- Fix bug plots requested boxplots

### Changed

## 1.3.0 - Almond Blossoms

### Added
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ RUN apt-get update -qq && \
apt-get install -y zip procps ghostscript

# Add conda installation dir to PATH
ENV PATH /opt/conda/envs/qbic-pipelines-rnadeseq-1.3.0/bin:$PATH
ENV PATH /opt/conda/envs/qbic-pipelines-rnadeseq-1.3.1/bin:$PATH

# Dump the details of the installed packates to a file for posterity
RUN conda env export --name qbic-pipelines-rnadeseq-1.3.0 > qbic-pipelines-rnadeseq-1.3.0.yml
RUN conda env export --name qbic-pipelines-rnadeseq-1.3.1 > qbic-pipelines-rnadeseq-1.3.1.yml

# Instruct R processes to use these empty files instead of clashing with a local config
RUN touch .Rprofile
Expand Down
10 changes: 7 additions & 3 deletions bin/DESeq2.R
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ if (!is.null(opt$contrasts_matrix)){

contname <- names(contrasts[i])
results_DEseq_contrast <- as.data.frame(results_DEseq_contrast)
print("Analyzing contrast:")
print(contname)
# Add gene name in table
DE_genes_contrast_genename <- results_DEseq_contrast
Expand Down Expand Up @@ -268,6 +269,7 @@ if (!is.null(opt$contrasts_pairs)) {
}
results_DEseq_contrast <- results(cds, contrast=list(cont[1],cont[2]))
results_DEseq_contrast <- as.data.frame(results_DEseq_contrast)
print("Analyzing contrast:")
print(contname)
# Add gene name in table
DE_genes_contrast_genename <- results_DEseq_contrast
Expand All @@ -294,6 +296,7 @@ if (is.null(opt$contrasts_matrix) & is.null(opt$contrasts_list) & is.null(opt$co
for (contname in contrast_names) {
results_DEseq_contrast <- results(cds, name=contname)
results_DEseq_contrast <- as.data.frame(results_DEseq_contrast)
print("Analyzing contrast:")
print(contname)

# Adding gene name to table
Expand Down Expand Up @@ -413,12 +416,13 @@ if (!is.null(opt$genelist)){
requested_genes_plot <- subset(gene_names, gene_name %in% gene_ids$requested_gene_name)

# Check that genes are in the cds table
requested_genes_plot <- requested_genes_plot[which(requested_genes_plot$Ensemble_ID %in% row.names(cds)),]
requested_genes_plot <- subset(requested_genes_plot, requested_genes_plot$Ensembl_ID %in% row.names(cds))

requested_genes_plot_Ensembl <- requested_genes_plot$Ensembl_ID
requested_genes_plot_gene_name <- requested_genes_plot$gene_name

for (i in requested_genes_plot_Ensembl){
boxplot_counts <- plotCounts(cds, gene=i, intgroup=c("combfactor"), returnData=TRUE, normalized = T)
for (i in c(1:length(requested_genes_plot_Ensembl))){
boxplot_counts <- plotCounts(cds, gene=requested_genes_plot_Ensembl[i], intgroup=c("combfactor"), returnData=TRUE, normalized = T)
boxplot_counts$variable = row.names(boxplot_counts)
plot <- ggplot(data=boxplot_counts, aes(x=combfactor, y=count, fill=combfactor)) +
geom_boxplot(position=position_dodge()) +
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# You can use this file to create a conda environment for this pipeline:
# conda env create -f environment.yml
# use this to find packages: https://anaconda.org/
name: qbic-pipelines-rnadeseq-1.3.0
name: qbic-pipelines-rnadeseq-1.3.1
channels:
- conda-forge
- bioconda
Expand Down
4 changes: 2 additions & 2 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ params {

// Container slug. Stable releases should specify release tag!
// Developmental code should specify :dev
process.container = 'qbicpipelines/rnadeseq:1.3.0'
process.container = 'qbicpipelines/rnadeseq:1.3.1'

// Load base.config by default for all pipelines
includeConfig 'conf/base.config'
Expand Down Expand Up @@ -102,7 +102,7 @@ manifest {
description = 'Downstream differential gene expression analysis with DESeq2'
mainScript = 'main.nf'
nextflowVersion = '>=19.04'
version = '1.3.0'
version = '1.3.1'
}

// Function to ensure that resource requirements don't go beyond
Expand Down

0 comments on commit 7d3a1e7

Please sign in to comment.