Skip to content

Commit 23c1b00

Browse files
committed
Fix #907
1 parent 0f4e827 commit 23c1b00

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- Updated pipeline template to [nf-core/tools 2.7.1](https://github.com/nf-core/tools/releases/tag/2.7.1)
1212
- [[#896](https://github.com/nf-core/rnaseq/issues/896)] - Remove `copyTo` call for iGenomes README
1313
- [[#897](https://github.com/nf-core/rnaseq/issues/897)] - Use `--skip_preseq` by default
14+
- [[#907](https://github.com/nf-core/rnaseq/issues/907)] - Add `--extra_star_align_args` and `--extra_salmon_quant_args` parameter
1415

1516
### Parameters
1617

17-
| Old parameter | New parameter |
18-
| ---------------- | ------------- |
19-
| `--enable_conda` | |
18+
| Old parameter | New parameter |
19+
| ---------------- | --------------------------- |
20+
| `--enable_conda` | |
21+
| | `--extra_star_align_args` |
22+
| | `--extra_salmon_quant_args` |
2023

2124
> **NB:** Parameter has been **updated** if both old and new parameter information is present.
2225
> **NB:** Parameter has been **added** if just the new parameter information is present.

conf/modules.config

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,8 @@ if (!params.skip_alignment && params.aligner == 'star_salmon') {
517517
'--outSAMattributes NH HI AS NM MD',
518518
'--quantTranscriptomeBan Singleend',
519519
'--outSAMstrandField intronMotif',
520-
params.save_unaligned ? '--outReadsUnmapped Fastx' : ''
520+
params.save_unaligned ? '--outReadsUnmapped Fastx' : '',
521+
params.extra_star_align_args ?: ''
521522
].join(' ').trim()
522523
publishDir = [
523524
[
@@ -541,6 +542,7 @@ if (!params.skip_alignment && params.aligner == 'star_salmon') {
541542
}
542543

543544
withName: '.*:QUANTIFY_STAR_SALMON:SALMON_QUANT' {
545+
ext.args = params.extra_salmon_quant_args ?: ''
544546
publishDir = [
545547
path: { "${params.outdir}/${params.aligner}" },
546548
mode: params.publish_dir_mode,
@@ -1045,6 +1047,7 @@ if (!params.skip_multiqc) {
10451047
if (params.pseudo_aligner == 'salmon') {
10461048
process {
10471049
withName: '.*:QUANTIFY_SALMON:SALMON_QUANT' {
1050+
ext.args = params.extra_salmon_quant_args ?: ''
10481051
publishDir = [
10491052
path: { "${params.outdir}/${params.pseudo_aligner}" },
10501053
mode: params.publish_dir_mode,

nextflow.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ params {
6868
hisat2_build_memory = '200.GB' // Amount of memory required to build HISAT2 index with splice sites
6969
stringtie_ignore_gtf = false
7070
min_mapped_reads = 5
71+
extra_star_args = null
72+
extra_salmon_args = null
7173
save_merged_fastq = false
7274
save_unaligned = false
7375
save_align_intermeds = false

nextflow_schema.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,16 @@
424424
"description": "Perform reference-guided de novo assembly of transcripts using StringTie i.e. dont restrict to those in GTF file.",
425425
"fa_icon": "fas fa-ban"
426426
},
427+
"extra_star_align_args": {
428+
"type": "string",
429+
"description": "Extra arguments to pass to STAR alignment command in addition to defaults defined by the pipeline.",
430+
"fa_icon": "fas fa-plus"
431+
},
432+
"extra_salmon_quant_args": {
433+
"type": "string",
434+
"description": "Extra arguments to pass to Salmon quant command in addition to defaults defined by the pipeline.",
435+
"fa_icon": "fas fa-plus"
436+
},
427437
"save_unaligned": {
428438
"type": "boolean",
429439
"fa_icon": "fas fa-save",

0 commit comments

Comments
 (0)