Skip to content

Commit 750e644

Browse files
authored
Merge branch 'dev' into feature/create-bam-parameter
2 parents 1a18dc8 + b5b061e commit 750e644

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55

66
## [Unreleased]
77

8-
- Add --create-bam parameter to cellranger count and multi pipelines ([#384](https://github.com/nf-core/scrnaseq/issues/384))
8+
- Add `--save_align_intermeds` parameter that publishes BAM files to the output directory (for `starsolo`, `cellranger` and `cellranger multi`) ([#384](https://github.com/nf-core/scrnaseq/issues/384))
9+
- Added support for pre-built indexes in `genomes.config` file for `cellranger`, `cellranger-arc`, `simpleaf` and `simpleaf txp2gene` ([#371](https://github.com/nf-core/scrnaseq/issues/371))
910

1011
## v2.7.1 - 2024-08-13
1112

workflows/scrnaseq.nf

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,20 @@ workflow SCRNASEQ {
3737
error "Only cellranger supports `protocol = 'auto'`. Please specify the protocol manually!"
3838
}
3939

40-
params.fasta = getGenomeAttribute('fasta')
41-
params.gtf = getGenomeAttribute('gtf')
42-
params.star_index = getGenomeAttribute('star')
40+
// collect paths from genome attributes file (e.g. iGenomes.config; optional)
41+
params.fasta = getGenomeAttribute('fasta')
42+
params.gtf = getGenomeAttribute('gtf')
43+
params.star_index = getGenomeAttribute('star')
44+
params.salmon_index = getGenomeAttribute('simpleaf')
45+
params.txp2gene = getGenomeAttribute('simpleaf_tx2pgene')
46+
47+
// Make cellranger or cellranger-arc index conditional
48+
if (params.aligner in ["cellranger", "cellrangermulti"]){
49+
params.cellranger_index = getGenomeAttribute('cellranger')
50+
}
51+
else if (params.aligner == "cellrangerarc") {
52+
params.cellranger_index = getGenomeAttribute('cellrangerarc')
53+
}
4354

4455
ch_genome_fasta = params.fasta ? file(params.fasta, checkIfExists: true) : []
4556
ch_gtf = params.gtf ? file(params.gtf, checkIfExists: true) : []

0 commit comments

Comments
 (0)