Skip to content

Commit

Permalink
Merge pull request #41 from nf-core/dev
Browse files Browse the repository at this point in the history
Patch Release 1.1.1
  • Loading branch information
apeltzer authored Jun 23, 2023
2 parents b13f05a + 9ab2141 commit 7451087
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ jobs:
- name: Run pipeline with test data and gene scores
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test_scores,docker --outdir ./results
- name: Run pipeline with test data and duplicate sample ids
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test_samples,docker --outdir ./results
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
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).

## v1.1.1 - 2023-06-23

### `Added`

- [#37](https://github.com/nf-core/nanostring/pull/37) - Allow skipping heatmap creation [#38](https://github.com/nf-core/nanostring/issues/38)

### `Fixed`

- [#37](https://github.com/nf-core/nanostring/pull/37) - Use unique rownames for Heatmap creation

### `Dependencies`

### `Deprecated`

## v1.1.0 - 2023-06-22 - Picometre

### `Added`
Expand Down
2 changes: 1 addition & 1 deletion bin/compute_gene_heatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (length(args) == 2) {
counts_selected <- counts %>% dplyr::select(all_of(genes))

#Add proper Rownames
rownames(counts_selected) <- counts$SAMPLE_ID
rownames(counts_selected) <- counts$RCC_FILE_NAME

#sort dataframe by rownames to make it easier comparable across heatmaps
counts_selected[order(row.names(counts_selected)), ]
Expand Down
25 changes: 25 additions & 0 deletions conf/test_samples.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nextflow config file for running tests for the same sample with multiple files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Defines input files and everything required to run a fast and simple pipeline test.
Use as follows:
nextflow run nf-core/nanostring -profile test_samples,<docker/singularity> --outdir <OUTDIR>
----------------------------------------------------------------------------------------
*/

params {
config_profile_name = 'Test profile with duplicate sample'
config_profile_description = 'Test dataset to check pipeline function when we have a duplicate sample id'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = '6.GB'
max_time = '6.h'

// Input data
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/nanostring/samplesheets/samplesheet_test_sampleid.csv'

}
13 changes: 9 additions & 4 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ params {
// Input options
input = null

//Skipping options
skip_heatmap = false

// Pipeline options
heatmap_genes_to_filter = null


// References
genome = null
igenomes_base = 's3://ngi-igenomes/igenomes'
Expand Down Expand Up @@ -167,9 +171,10 @@ profiles {
executor.cpus = 16
executor.memory = 60.GB
}
test { includeConfig 'conf/test.config' }
test_full { includeConfig 'conf/test_full.config' }
test_scores { includeConfig 'conf/test_scores.config' }
test { includeConfig 'conf/test.config' }
test_full { includeConfig 'conf/test_full.config' }
test_scores { includeConfig 'conf/test_scores.config' }
test_samples { includeConfig 'conf/test_samples.config' }
}


Expand Down Expand Up @@ -220,7 +225,7 @@ manifest {
description = """A Nanostring nCounter analysis pipeline"""
mainScript = 'main.nf'
nextflowVersion = '!>=23.04.0'
version = '1.1.0'
version = '1.1.1'
doi = ''
}

Expand Down
15 changes: 15 additions & 0 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@
}
}
},
"skipping_options": {
"title": "Skipping Options",
"type": "object",
"description": "Allows to specify options to skip parts of the pipeline",
"default": "",
"properties": {
"skip_heatmap": {
"type": "boolean",
"description": "Skip creating the heatmap"
}
}
},
"reference_genome_options": {
"title": "Reference genome options",
"type": "object",
Expand Down Expand Up @@ -296,6 +308,9 @@
{
"$ref": "#/definitions/gene_score_computation"
},
{
"$ref": "#/definitions/skipping_options"
},
{
"$ref": "#/definitions/reference_genome_options"
},
Expand Down
9 changes: 6 additions & 3 deletions workflows/nanostring.nf
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,13 @@ workflow NANOSTRING {
//
// MODULE: Compute gene-count heatmap for MultiQC report based on annotated (ENDO) counts
//
CREATE_GENE_HEATMAP (
if(!params.skip_heatmap){
CREATE_GENE_HEATMAP (
CREATE_ANNOTATED_TABLES.out.annotated_endo_data
)
ch_versions = ch_versions.mix(CREATE_GENE_HEATMAP.out.versions)
)
ch_versions = ch_versions.mix(CREATE_GENE_HEATMAP.out.versions)
}


//
// DUMP SOFTWARE VERSIONS
Expand Down

0 comments on commit 7451087

Please sign in to comment.