Skip to content

Commit 327c30a

Browse files
authored
Merge pull request #668 from nvnieuwk/add/limitBamSortRam
add `--limit_bam_sort_ram`
2 parents cf214a2 + d93aad3 commit 327c30a

File tree

4 files changed

+32
-21
lines changed

4 files changed

+32
-21
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4242
- Added the `seq_platform` and `seq_center` fields to the samplesheet. These values can be used to overwrite the value of `--seq_platform` and `--seq_center` on a sample-by-sample basis [#654](https://github.com/nf-core/rnafusion/pull/654)
4343
- Moved strandedness determination for picard collectrnaseqmetrics into modules.config [#658](https://github.com/nf-core/rnafusion/pull/658)
4444
- Using option `--human_gencode_filter` while building STARFusion references for human species [#657](https://github.com/nf-core/rnafusion/pull/657)
45+
- Added `--star_limit_bam_sort_ram` to set the maximum memory for sorting the BAM files in STAR. [#668](https://github.com/nf-core/rnafusion/pull/668)
4546
- Update STAR-Fusion to 1.15.0 and update nf-core modules [#664](https://github.com/nf-core/rnafusion/pull/664)
4647
- Update fusionreport 4.0.0 that replaces the score of a fusion with a Fusion Indication Index [#667](https://github.com/nf-core/rnafusion/pull/667)
4748

conf/modules.config

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -253,27 +253,30 @@ process {
253253
mode: params.publish_dir_mode,
254254
saveAs: { filename -> filename.equals('versions.yml') ? null : filename },
255255
]
256-
ext.args = { "--outReadsUnmapped None \
257-
--outSAMattrRGline 'ID:${meta.id}' 'SM:${meta.id}'${meta.seq_center ? " 'CN:${meta.seq_center}'": ''}${meta.seq_platform ? "' PL:${meta.seq_platform}'": ''} \
258-
--outSAMstrandField intronMotif \
259-
--chimOutJunctionFormat 1 \
260-
--twopassMode None \
261-
--outFilterMultimapNmax 50 \
262-
--chimMultimapNmax 50 \
263-
--quantMode GeneCounts \
264-
--outSAMunmapped Within \
265-
--readFilesCommand zcat \
266-
--alignSJstitchMismatchNmax 5 -1 5 5 \
267-
--outSAMtype BAM SortedByCoordinate \
268-
--chimSegmentMin 10 \
269-
--peOverlapNbasesMin 10 \
270-
--alignSplicedMateMapLminOverLmate 0.5 \
271-
--chimJunctionOverhangMin 10 \
272-
--chimScoreJunctionNonGTAG 0 \
273-
--chimScoreDropMax 30 \
274-
--chimScoreSeparation 1 \
275-
--chimSegmentReadGapMax 3 \
276-
--chimOutType Junctions WithinBAM" }
256+
ext.args = { [
257+
"--outReadsUnmapped None",
258+
"--outSAMattrRGline 'ID:${meta.id}' 'SM:${meta.id}'${meta.seq_center ? " 'CN:${meta.seq_center}'": ''}${meta.seq_platform ? "' PL:${meta.seq_platform}'": ''}",
259+
"--outSAMstrandField intronMotif",
260+
"--chimOutJunctionFormat 1",
261+
"--twopassMode None",
262+
"--outFilterMultimapNmax 50",
263+
"--chimMultimapNmax 50",
264+
"--quantMode GeneCounts",
265+
"--outSAMunmapped Within",
266+
"--readFilesCommand zcat ",
267+
"--alignSJstitchMismatchNmax 5 -1 5 5",
268+
"--outSAMtype BAM SortedByCoordinate",
269+
"--chimSegmentMin 10",
270+
"--peOverlapNbasesMin 10",
271+
"--alignSplicedMateMapLminOverLmate 0.5",
272+
"--chimJunctionOverhangMin 10",
273+
"--chimScoreJunctionNonGTAG 0",
274+
"--chimScoreDropMax 30",
275+
"--chimScoreSeparation 1 ",
276+
"--chimSegmentReadGapMax 3",
277+
"--chimOutType Junctions WithinBAM",
278+
params.star_limit_bam_sort_ram > 0 ? "--limitBAMsortRAM ${params.star_limit_bam_sort_ram}" : ""
279+
].join(' ') }
277280
}
278281

279282
withName: 'STAR_GENOMEGENERATE' {

nextflow.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ params {
4747

4848
// Alignment options
4949
star_ignore_sjdbgtf = false
50+
star_limit_bam_sort_ram = 0
5051
seq_center = ""
5152
seq_platform = ""
5253
fusioncatcher_limitSjdbInsertNsj = 2000000

nextflow_schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,12 @@
532532
"hidden": true,
533533
"fa_icon": "fas fa-toolbox",
534534
"help_text": "Setting false will use GTF file for STAR alignment"
535+
},
536+
"star_limit_bam_sort_ram": {
537+
"type": "integer",
538+
"description": "The maximum amount of RAM to use for sorting the BAM file in STAR. Should by in bits. Setting this value to `0` will use the default amount of STAR.",
539+
"fa_icon": "fas fa-toolbox",
540+
"minimum": 0
535541
}
536542
}
537543
}

0 commit comments

Comments
 (0)