Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a61f969
Added stubtest for align_bwa_bwamem2_bwameme
emmadizdarevic Apr 8, 2026
8888e71
Added stubtest for align_MT
emmadizdarevic Apr 8, 2026
6474379
Added stubtest for call_repeat_expansions
emmadizdarevic Apr 20, 2026
a571cd9
Added the stub test for align_sentieon
emmadizdarevic Apr 20, 2026
200dde0
Updated snapshot for align_sentieon
Apr 20, 2026
522fead
Added stubtest for qc_bam
emmadizdarevic Apr 21, 2026
ca40cb9
Added snapshot got qc_bam
Apr 21, 2026
692aab7
Revert "Added snapshot got qc_bam"
Apr 21, 2026
92f6fcd
Merge branch 'dev' into ED-add-stub-tests
emmadizdarevic Apr 22, 2026
3b75c84
[automated] Fix code linting
nf-core-bot Apr 22, 2026
f2e9cb7
Added stub test for prepare_references
emmadizdarevic Apr 23, 2026
a6cc710
Merge branch 'ED-add-stub-tests' of github.com:nf-core/raredisease in…
emmadizdarevic Apr 23, 2026
c1ea730
Merge branch 'dev' into ED-add-stub-tests
emmadizdarevic Apr 23, 2026
0e60144
Merge branch 'dev' of github.com:nf-core/raredisease into ED-add-stub…
emmadizdarevic Apr 23, 2026
28fe00b
Merge branch 'ED-add-stub-tests' of github.com:nf-core/raredisease in…
emmadizdarevic Apr 24, 2026
87e4407
Updated the stub test channels to match full
emmadizdarevic Apr 24, 2026
cf755c4
Modified assertion for the sub tests and updated snapshot
Apr 27, 2026
57532eb
Modified stub test for align_sentieon and added new snapshot
Apr 28, 2026
4187479
Merge branch 'dev' into ED-add-stub-tests
emmadizdarevic Apr 28, 2026
f200370
Fixed assertion in align_sentieon
Apr 29, 2026
8226075
Added stub test for align wes, and updated the CHANGELOG
emmadizdarevic Apr 29, 2026
462831d
Updated the CHANGELOG
emmadizdarevic Apr 29, 2026
e14a945
Fixed CHANGELOG with prettier
emmadizdarevic Apr 29, 2026
5fae61f
Merge branch 'dev' into ED-add-stub-tests
emmadizdarevic Jun 11, 2026
6318a7d
trying to update snapshot for bwa_bwamem2_bwameme
emmadizdarevic Jun 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Saltshaker for downstream processing of mitochondrial SV calls from MitoSAlt [#775](https://github.com/nf-core/raredisease/pull/775)
- Env variable NXF_SINGULARITY_NEW_PID_NAMESPACE = false to accommodate hisat2 running with latest Nextflow and Singularity [#775](https://github.com/nf-core/raredisease/pull/775)
- Parameter `exclude_alt` to filter alignments to alt/unplaced contigs after alignment using samtools view, retaining only primary chromosomes (GRCh37: 1-22,X,Y,MT / GRCh38: chr1-chr22,chrX,chrY,chrM). Note that enabling this will restrict variant calling to these chromosomes [#803](https://github.com/nf-core/raredisease/pull/803)
- Stub test for all the remaning subworkflows that were lacking it: align_bwa_bwamem2_bwameme, align_MT, align (bwameme - wes), align_sentieon, call_repeat_expansions, prepare_references, qc_bam [#820](https://github.com/nf-core/raredisease/pull/820)
- Parameters `save_all_mapped_as_cram` and `save_noalt_mapped_as_cram` to replace `save_mapped_as_cram`, allowing independent control over publishing unfiltered and alt-filtered alignment files as CRAM [#807](https://github.com/nf-core/raredisease/pull/807)
- Parameter `run_vcfanno_db_sanity_check` to check vcfanno database files for zero records and remove the corresponding annotation blocks from the TOML config before running vcfanno [#821](https://github.com/nf-core/raredisease/pull/821)
- Added `--skip_split_multiallelics` parameter to allow users to skip the `bcftools norm --multiallelics -both` step in SNV calling (DeepVariant and Sentieon), which can cause indel quality degradation in single-interval runs [#823](https://github.com/nf-core/raredisease/pull/823)
Expand Down
103 changes: 102 additions & 1 deletion subworkflows/local/align/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ nextflow_workflow {
)
}
}
test("align bwamem2 - wes") {
test("align bwamem2 - wes, stub") {

options "-stub"

Expand Down Expand Up @@ -352,4 +352,105 @@ nextflow_workflow {
)
}
}



test("align bwameme - wes, stub") {

options "-stub"

setup {
run("BWAMEME_INDEX", alias: 'GENOME_MEME') {
script "modules/nf-core/bwameme/index/main.nf"
process {
"""
input[0] = channel.of([
[id:'genome'],
file('https://raw.githubusercontent.com/nf-core/test-datasets/raredisease/reference/reference.fasta', checkIfExists: true)
])
"""
}
}
}


when {
params {
pipelines_testdata_base_path = 'https://raw.githubusercontent.com/nf-core/test-datasets/raredisease/'
platform = "illumina"
min_trimmed_length = 50
mito_name = "MT"
outdir = "$outputDir"
}
workflow {
"""
input[0] = channel.empty()
input[1] = channel.empty()
input[2] = channel.empty()
input[3] = GENOME_MEME.out.index.collect()
input[4] = channel.of([id:'genome'], file(params.pipelines_testdata_base_path + 'reference/reference.dict', checkIfExists: true)).collect()
input[5] = channel.of([id:'genome'], file(params.pipelines_testdata_base_path + 'reference/reference.fasta.fai', checkIfExists: true)).collect()
input[6] = channel.of([id:'genome'], file(params.pipelines_testdata_base_path + 'reference/reference.fasta', checkIfExists: true)).collect()
input[7] = channel.fromList([
[[ id:'earlycasualcaiman', sample:'earlycasualcaiman', single_end:false, num_lanes:1, read_group: "'@RG\\\\tID:earlycasualcaiman\\\\tPL:illumina\\\\tSM:earlycasualcaiman'", 'lane':1, 'sex':1, 'phenotype':1, 'paternal':0, 'maternal':0, 'case_id':'justhusky' ], // meta map
[
file(params.pipelines_testdata_base_path + '/testdata/1_171015_HHT5NDSXX_earlycasualcaiman_XXXXXX_1.fastq.gz', checkIfExists: true),
file(params.pipelines_testdata_base_path + '/testdata/1_171015_HHT5NDSXX_earlycasualcaiman_XXXXXX_2.fastq.gz', checkIfExists: true)
]],
[[ id:'hugelymodelbat', sample:'hugelymodelbat', single_end:false, num_lanes:1, read_group: "'@RG\\\\tID:hugelymodelbat\\\\tPL:illumina\\\\tSM:hugelymodelbat'", 'lane':1, 'sex':1, 'phenotype':2, 'paternal':'earlycasualcaiman', 'maternal':'slowlycivilbuck', 'case_id':'justhusky' ], // meta map
[
file(params.pipelines_testdata_base_path + '/testdata/1_171015_HHT5NDSXX_hugelymodelbat_XXXXXX_1.fastq.gz', checkIfExists: true),
file(params.pipelines_testdata_base_path + '/testdata/1_171015_HHT5NDSXX_hugelymodelbat_XXXXXX_2.fastq.gz', checkIfExists: true)
]],
[[ id:'slowlycivilbuck', sample:'slowlycivilbuck', single_end:false, num_lanes:1, read_group: "'@RG\\\\tID:slowlycivilbuck\\\\tPL:illumina\\\\tSM:slowlycivilbuck'", 'lane':1, 'sex':2, 'phenotype':1, 'paternal':0, 'maternal':0, 'case_id':'justhusky' ], // meta map
[
file(params.pipelines_testdata_base_path + '/testdata/1_171015_HHT5NDSXX_slowlycivilbuck_XXXXXX_1.fastq.gz', checkIfExists: true),
file(params.pipelines_testdata_base_path + '/testdata/1_171015_HHT5NDSXX_slowlycivilbuck_XXXXXX_2.fastq.gz', checkIfExists: true)
]]
])
input[8] = channel.empty()
input[9] = MT_MEM2.out.index.collect()
input[10] = channel.of([id:'mt'], file(params.pipelines_testdata_base_path + 'reference/reference_mt.dict', checkIfExists: true)).collect()
input[11] = channel.of([id:'mt'], file(params.pipelines_testdata_base_path + 'reference/reference_mt.fa.fai', checkIfExists: true)).collect()
input[12] = channel.of([id:'mt'], file(params.pipelines_testdata_base_path + 'reference/reference_mt.fa', checkIfExists: true)).collect()
input[13] = channel.empty()
input[14] = SHIFTMT_MEM2.out.index.collect()
input[15] = channel.of([id:'shiftmt'], file(params.pipelines_testdata_base_path + 'reference/reference_mt.dict', checkIfExists: true)).collect()
input[16] = channel.of([id:'shiftmt'], file(params.pipelines_testdata_base_path + 'reference/reference_mt.fa.fai', checkIfExists: true)).collect()
input[17] = channel.of([id:'shiftmt'], file(params.pipelines_testdata_base_path + 'reference/reference_mt.fa', checkIfExists: true)).collect()
input[18] = true
input[19] = "bwameme"
input[20] = "wgs"
input[21] = false
input[22] = false
input[23] = 3072
input[24] = "bwamem2"
input[25] = "illumina"
input[26] = false
input[27] = 4
input[28] = true
input[29] = false
"""
}
}

then {
assertAll(
{ assert workflow.success },
{ assert snapshot(
workflow.out.publish.flatten()
.findAll { it instanceof String && (it.startsWith('/') || it.contains('.')) }
.collect { new File(it).name }
.sort(),
workflow.out.genome_marked_bam_bai
.collect { meta, bamfile, index -> [ meta, bam(bamfile).getReadsMD5(), file(index).name ] },
workflow.out.mt_bam_bai
.collect { meta, bamfile, index -> [ meta, bam(bamfile).getReadsMD5(), file(index).name ] },
workflow.out.mtshift_bam_bai
.collect { meta, bamfile, index -> [ meta, bam(bamfile).getReadsMD5(), file(index).name ] }
).match()
}
)
}
}
}
Loading
Loading