Skip to content

Commit

Permalink
update applybqsr
Browse files Browse the repository at this point in the history
  • Loading branch information
famosab committed Dec 10, 2024
1 parent 8aef0e0 commit bf40209
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 30 deletions.
2 changes: 2 additions & 0 deletions .github/conda_skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,5 @@ exclude:
path: modules/nf-core/xeniumranger/import-segmentation
- profile: conda
path: modules/nf-core/parabricks/genotypegvcf
- profile: conda
path: modules/nf-core/parabricks/applybqsr
10 changes: 2 additions & 8 deletions modules/nf-core/parabricks/applybqsr/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ process PARABRICKS_APPLYBQSR {
tag "$meta.id"
label 'process_high'
label 'process_gpu'
stageInMode 'copy'

container "nvcr.io/nvidia/clara/clara-parabricks:4.3.2-1"
container "nvcr.io/nvidia/clara/clara-parabricks:4.4.0-1"

input:
tuple val(meta), path(bam)
Expand All @@ -28,13 +29,8 @@ process PARABRICKS_APPLYBQSR {
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def interval_command = intervals ? intervals.collect{"--interval-file $it"}.join(' ') : ""
def copy_index_command = bam_index ? "cp -L $bam_index `readlink -f $bam`.bai" : ""
def num_gpus = task.accelerator ? "--num-gpus $task.accelerator.request" : ''
"""
# parabricks complains when index is not a regular file in the same directory as the bam
# copy the index to this path.
$copy_index_command
pbrun \\
applybqsr \\
--ref $fasta \\
Expand All @@ -53,9 +49,7 @@ process PARABRICKS_APPLYBQSR {
"""

stub:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def interval_command = intervals ? intervals.collect{"--interval-file $it"}.join(' ') : ""
"""
touch ${prefix}.bam
touch ${prefix}.bam.bai
Expand Down
44 changes: 22 additions & 22 deletions modules/nf-core/parabricks/applybqsr/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,42 @@
"2f11e4fe3390b8ad0a1852616fd1da04",
"test.bam.bai",
[
"versions.yml:md5,139b8f2a0926a26cf843ac23daace6d0"
"versions.yml:md5,f396830824c06b6dc30056e423a91634"
]
],
"meta": {
"nf-test": "0.9.1",
"nextflow": "24.10.0"
"nf-test": "0.9.2",
"nextflow": "24.10.2"
},
"timestamp": "2024-10-31T08:40:58.540517299"
"timestamp": "2024-12-10T08:44:34.058228768"
},
"sarscov2 - bam - pe": {
"content": [
"894549ee3ced6b5ca2eed2563a985217",
"test.bam.bai",
[
"versions.yml:md5,139b8f2a0926a26cf843ac23daace6d0"
"versions.yml:md5,f396830824c06b6dc30056e423a91634"
]
],
"meta": {
"nf-test": "0.9.1",
"nextflow": "24.10.0"
"nf-test": "0.9.2",
"nextflow": "24.10.2"
},
"timestamp": "2024-10-30T10:55:02.759938278"
"timestamp": "2024-12-10T08:44:17.204736211"
},
"sarscov2 - bam - pe - intervals": {
"content": [
"b194021b699cc5cf4b2b1f715e0b7b4c",
"test.bam.bai",
[
"versions.yml:md5,139b8f2a0926a26cf843ac23daace6d0"
"versions.yml:md5,f396830824c06b6dc30056e423a91634"
]
],
"meta": {
"nf-test": "0.9.1",
"nextflow": "24.10.0"
"nf-test": "0.9.2",
"nextflow": "24.10.2"
},
"timestamp": "2024-10-30T11:20:43.476752722"
"timestamp": "2024-12-10T08:44:25.661590103"
},
"sarscov2 - bam - pe - intervals - stub": {
"content": [
Expand All @@ -61,7 +61,7 @@
]
],
"2": [
"versions.yml:md5,139b8f2a0926a26cf843ac23daace6d0"
"versions.yml:md5,f396830824c06b6dc30056e423a91634"
],
"bai": [
[
Expand All @@ -80,15 +80,15 @@
]
],
"versions": [
"versions.yml:md5,139b8f2a0926a26cf843ac23daace6d0"
"versions.yml:md5,f396830824c06b6dc30056e423a91634"
]
}
],
"meta": {
"nf-test": "0.9.1",
"nextflow": "24.10.0"
"nf-test": "0.9.2",
"nextflow": "24.10.2"
},
"timestamp": "2024-10-30T11:21:02.658767469"
"timestamp": "2024-12-10T08:44:47.700907318"
},
"human - cram - pe - intervals - stub": {
"content": [
Expand All @@ -110,7 +110,7 @@
]
],
"2": [
"versions.yml:md5,139b8f2a0926a26cf843ac23daace6d0"
"versions.yml:md5,f396830824c06b6dc30056e423a91634"
],
"bai": [
[
Expand All @@ -129,14 +129,14 @@
]
],
"versions": [
"versions.yml:md5,139b8f2a0926a26cf843ac23daace6d0"
"versions.yml:md5,f396830824c06b6dc30056e423a91634"
]
}
],
"meta": {
"nf-test": "0.9.1",
"nextflow": "24.10.0"
"nf-test": "0.9.2",
"nextflow": "24.10.2"
},
"timestamp": "2024-10-30T11:20:56.908929981"
"timestamp": "2024-12-10T08:44:41.08456539"
}
}

0 comments on commit bf40209

Please sign in to comment.