Skip to content

Commit

Permalink
Updated snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp committed Aug 27, 2024
1 parent 44f91bb commit dca715d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 42 deletions.
1 change: 1 addition & 0 deletions subworkflows/nf-core/fastq_bwa_mem_samblaster/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ workflow FASTQ_BWA_MEM_SAMBLASTER {
take:
ch_fastq // channel: [ val(meta), [ fq ] ]; meta ~ [ id: 'sample' ]
ch_reference // channel: [ val(meta2), fasta, index ]; fasta | index; meta2 ~ [ id: 'genome' ]
// Each item from ch_fastq is combined with each item from ch_reference

main:
ch_versions = Channel.empty()
Expand Down
12 changes: 8 additions & 4 deletions subworkflows/nf-core/fastq_bwa_mem_samblaster/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ nextflow_workflow {

then {
assertAll(
{ assert workflow.success},
{ assert snapshot(workflow.out).match()}
{ assert workflow.success },
{ assert snapshot(
bam(workflow.out.bam[0][1]).getReadsMD5(),
workflow.out.versions
).match()
}
)
}
}
Expand Down Expand Up @@ -67,8 +71,8 @@ nextflow_workflow {

then {
assertAll(
{ assert workflow.success},
{ assert snapshot(workflow.out).match()}
{ assert workflow.success },
{ assert snapshot(workflow.out).match() }
)
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,42 +1,18 @@
{
"sarscov2-fq-gz": {
"content": [
{
"0": [
[
{
"id": "test",
"ref_id": "genome"
},
"test.on.genome.samblaster.bam:md5,8c47b2669f5250ad2d24365b42566d78"
]
],
"1": [
"versions.yml:md5,3b59736950270bca59c29afeb5289b4f",
"versions.yml:md5,46f2d5384c2b4c6111293bc8642cc43a",
"versions.yml:md5,6a2baa7f2d1d555fe604e451624f414b"
],
"bam": [
[
{
"id": "test",
"ref_id": "genome"
},
"test.on.genome.samblaster.bam:md5,8c47b2669f5250ad2d24365b42566d78"
]
],
"versions": [
"versions.yml:md5,3b59736950270bca59c29afeb5289b4f",
"versions.yml:md5,46f2d5384c2b4c6111293bc8642cc43a",
"versions.yml:md5,6a2baa7f2d1d555fe604e451624f414b"
]
}
"7cf71131809f63c5c05c767742ed70ff",
[
"versions.yml:md5,3b59736950270bca59c29afeb5289b4f",
"versions.yml:md5,80949a94ee1be8238b1c79d89ed9fa83",
"versions.yml:md5,ddd810edeee1008ec55b628e3a9d6204"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
"nextflow": "24.04.4"
},
"timestamp": "2024-05-03T15:58:33.221762"
"timestamp": "2024-08-28T09:36:34.757275"
},
"sarscov2-fq-gz-stub": {
"content": [
Expand All @@ -52,8 +28,8 @@
],
"1": [
"versions.yml:md5,3b59736950270bca59c29afeb5289b4f",
"versions.yml:md5,46f2d5384c2b4c6111293bc8642cc43a",
"versions.yml:md5,6a2baa7f2d1d555fe604e451624f414b"
"versions.yml:md5,80949a94ee1be8238b1c79d89ed9fa83",
"versions.yml:md5,ddd810edeee1008ec55b628e3a9d6204"
],
"bam": [
[
Expand All @@ -66,15 +42,15 @@
],
"versions": [
"versions.yml:md5,3b59736950270bca59c29afeb5289b4f",
"versions.yml:md5,46f2d5384c2b4c6111293bc8642cc43a",
"versions.yml:md5,6a2baa7f2d1d555fe604e451624f414b"
"versions.yml:md5,80949a94ee1be8238b1c79d89ed9fa83",
"versions.yml:md5,ddd810edeee1008ec55b628e3a9d6204"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
"nextflow": "24.04.4"
},
"timestamp": "2024-05-03T16:03:28.825915"
"timestamp": "2024-08-28T09:36:42.43377"
}
}

0 comments on commit dca715d

Please sign in to comment.