Skip to content

Commit 2b7eb9b

Browse files
authored
APPLYBQSR output line specificity (#7818)
* updated output line and snap file * linting fix in meta
1 parent 875cffa commit 2b7eb9b

3 files changed

Lines changed: 99 additions & 93 deletions

File tree

modules/nf-core/gatk4spark/applybqsr/main.nf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ process GATK4SPARK_APPLYBQSR {
1414
path dict
1515

1616
output:
17-
tuple val(meta), path("*.bam") , emit: bam, optional: true
18-
tuple val(meta), path("*.cram"), emit: cram, optional: true
17+
tuple val(meta), path("${prefix}.bam") , emit: bam, optional: true
18+
tuple val(meta), path("${prefix}.cram"), emit: cram, optional: true
1919
path "versions.yml" , emit: versions
2020

2121
when:
2222
task.ext.when == null || task.ext.when
2323

2424
script:
2525
def args = task.ext.args ?: ''
26-
def prefix = task.ext.prefix ?: "${meta.id}"
26+
prefix = task.ext.prefix ?: "${meta.id}"
2727
def interval_command = intervals ? "--intervals $intervals" : ""
2828

2929
def avail_mem = 3072
@@ -52,7 +52,7 @@ process GATK4SPARK_APPLYBQSR {
5252
"""
5353

5454
stub:
55-
def prefix = task.ext.prefix ?: "${meta.id}"
55+
prefix = task.ext.prefix ?: "${meta.id}"
5656
"""
5757
touch ${prefix}.bam
5858
touch ${prefix}.cram
Lines changed: 83 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,91 @@
11
name: gatk4spark_applybqsr
22
description: Apply base quality score recalibration (BQSR) to a bam file
33
keywords:
4-
- bam
5-
- base quality score recalibration
6-
- bqsr
7-
- cram
8-
- gatk4spark
4+
- bam
5+
- base quality score recalibration
6+
- bqsr
7+
- cram
8+
- gatk4spark
99
tools:
10-
- gatk4:
11-
description: |
12-
Developed in the Data Sciences Platform at the Broad Institute, the toolkit offers a wide variety of tools
13-
with a primary focus on variant discovery and genotyping. Its powerful processing engine
14-
and high-performance computing features make it capable of taking on projects of any size.
15-
homepage: https://gatk.broadinstitute.org/hc/en-us
16-
documentation: https://gatk.broadinstitute.org/hc/en-us/categories/360002369672s
17-
doi: 10.1158/1538-7445.AM2017-3590
18-
licence: ["Apache-2.0"]
19-
identifier: ""
10+
- gatk4:
11+
description: |
12+
Developed in the Data Sciences Platform at the Broad Institute, the toolkit offers a wide variety of tools
13+
with a primary focus on variant discovery and genotyping. Its powerful processing engine
14+
and high-performance computing features make it capable of taking on projects of any size.
15+
homepage: https://gatk.broadinstitute.org/hc/en-us
16+
documentation: https://gatk.broadinstitute.org/hc/en-us/categories/360002369672s
17+
doi: 10.1158/1538-7445.AM2017-3590
18+
licence: ["Apache-2.0"]
19+
identifier: ""
2020
input:
21-
- - meta:
22-
type: map
23-
description: |
24-
Groovy Map containing sample information
25-
e.g. [ id:'test', single_end:false ]
26-
- input:
27-
type: file
28-
description: BAM/CRAM file from alignment
29-
pattern: "*.{bam,cram}"
30-
- input_index:
31-
type: file
32-
description: BAI/CRAI file from alignment
33-
pattern: "*.{bai,crai}"
34-
- bqsr_table:
35-
type: file
36-
description: Recalibration table from gatk4_baserecalibrator
37-
- intervals:
38-
type: file
39-
description: Bed file with the genomic regions included in the library (optional)
40-
- - fasta:
41-
type: file
42-
description: The reference fasta file
43-
pattern: "*.fasta"
44-
- - fai:
45-
type: file
46-
description: Index of reference fasta file
47-
pattern: "*.fasta.fai"
48-
- - dict:
49-
type: file
50-
description: GATK sequence dictionary
51-
pattern: "*.dict"
21+
- - meta:
22+
type: map
23+
description: |
24+
Groovy Map containing sample information
25+
e.g. [ id:'test', single_end:false ]
26+
- input:
27+
type: file
28+
description: BAM/CRAM file from alignment
29+
pattern: "*.{bam,cram}"
30+
- input_index:
31+
type: file
32+
description: BAI/CRAI file from alignment
33+
pattern: "*.{bai,crai}"
34+
- bqsr_table:
35+
type: file
36+
description: Recalibration table from gatk4_baserecalibrator
37+
- intervals:
38+
type: file
39+
description: Bed file with the genomic regions included in the library (optional)
40+
- - fasta:
41+
type: file
42+
description: The reference fasta file
43+
pattern: "*.fasta"
44+
- - fai:
45+
type: file
46+
description: Index of reference fasta file
47+
pattern: "*.fasta.fai"
48+
- - dict:
49+
type: file
50+
description: GATK sequence dictionary
51+
pattern: "*.dict"
5252
output:
53-
- bam:
54-
- meta:
55-
type: map
56-
description: |
57-
Groovy Map containing sample information
58-
e.g. [ id:'test', single_end:false ]
59-
- "*.bam":
60-
type: file
61-
description: Recalibrated BAM file
62-
pattern: "*.{bam}"
63-
- cram:
64-
- meta:
65-
type: map
66-
description: |
67-
Groovy Map containing sample information
68-
e.g. [ id:'test', single_end:false ]
69-
- "*.cram":
70-
type: file
71-
description: Recalibrated CRAM file
72-
pattern: "*.{cram}"
73-
- versions:
74-
- versions.yml:
75-
type: file
76-
description: File containing software versions
77-
pattern: "versions.yml"
53+
- bam:
54+
- meta:
55+
type: map
56+
description: |
57+
Groovy Map containing sample information
58+
e.g. [ id:'test', single_end:false ]
59+
pattern: "*.{bam}"
60+
- ${prefix}.bam:
61+
type: map
62+
description: |
63+
Groovy Map containing sample information
64+
e.g. [ id:'test', single_end:false ]
65+
pattern: "*.{bam}"
66+
- cram:
67+
- meta:
68+
type: map
69+
description: |
70+
Groovy Map containing sample information
71+
e.g. [ id:'test', single_end:false ]
72+
pattern: "*.{cram}"
73+
- ${prefix}.cram:
74+
type: map
75+
description: |
76+
Groovy Map containing sample information
77+
e.g. [ id:'test', single_end:false ]
78+
pattern: "*.{cram}"
79+
- versions:
80+
- versions.yml:
81+
type: file
82+
description: File containing software versions
83+
pattern: "versions.yml"
7884
authors:
79-
- "@yocra3"
80-
- "@FriederikeHanssen"
81-
- "@maxulysse"
85+
- "@yocra3"
86+
- "@FriederikeHanssen"
87+
- "@maxulysse"
8288
maintainers:
83-
- "@yocra3"
84-
- "@FriederikeHanssen"
85-
- "@maxulysse"
89+
- "@yocra3"
90+
- "@FriederikeHanssen"
91+
- "@maxulysse"

modules/nf-core/gatk4spark/applybqsr/tests/main.nf.test.snap

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
}
4444
],
4545
"meta": {
46-
"nf-test": "0.9.1",
47-
"nextflow": "24.10.0"
46+
"nf-test": "0.9.2",
47+
"nextflow": "24.10.5"
4848
},
49-
"timestamp": "2024-11-06T11:47:37.292174976"
49+
"timestamp": "2025-03-17T16:50:02.397152291"
5050
},
5151
"sarscov2 - cram": {
5252
"content": [
@@ -82,10 +82,10 @@
8282
}
8383
],
8484
"meta": {
85-
"nf-test": "0.9.1",
86-
"nextflow": "24.10.0"
85+
"nf-test": "0.9.2",
86+
"nextflow": "24.10.5"
8787
},
88-
"timestamp": "2024-11-06T11:48:24.575560544"
88+
"timestamp": "2025-03-17T16:50:30.685886937"
8989
},
9090
"sarscov2 - bam": {
9191
"content": [
@@ -121,10 +121,10 @@
121121
}
122122
],
123123
"meta": {
124-
"nf-test": "0.9.1",
125-
"nextflow": "24.10.0"
124+
"nf-test": "0.9.2",
125+
"nextflow": "24.10.5"
126126
},
127-
"timestamp": "2024-11-06T11:46:46.042894548"
127+
"timestamp": "2025-03-17T16:49:26.18719288"
128128
},
129129
"sarscov2 - bam intervals": {
130130
"content": [
@@ -160,9 +160,9 @@
160160
}
161161
],
162162
"meta": {
163-
"nf-test": "0.9.1",
164-
"nextflow": "24.10.0"
163+
"nf-test": "0.9.2",
164+
"nextflow": "24.10.5"
165165
},
166-
"timestamp": "2024-11-06T11:47:13.436442722"
166+
"timestamp": "2025-03-17T16:49:49.844595108"
167167
}
168168
}

0 commit comments

Comments
 (0)