Skip to content

Commit

Permalink
fix: Update regtools version extraction regex in junctionsextract module
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Nov 20, 2024
1 parent f75790e commit 3a185f6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
4 changes: 2 additions & 2 deletions modules/nf-core/regtools/junctionsextract/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ process REGTOOLS_JUNCTIONSEXTRACT {
cat <<-END_VERSIONS > versions.yml
"${task.process}":
regtools: \$(regtools --version 2>&1 | sed 's/^.*regtools //; s/ .*\$//')
regtools: \$(regtools --version 2>&1 | grep "Version:" | sed 's/Version:\t//')
END_VERSIONS
"""

Expand All @@ -39,7 +39,7 @@ process REGTOOLS_JUNCTIONSEXTRACT {
cat <<-END_VERSIONS > versions.yml
"${task.process}":
regtools: \$(regtools --version 2>&1 | sed 's/^.*regtools //; s/ .*\$//')
regtools: \$(regtools --version 2>&1 | grep "Version:" | sed 's/Version:\t//')
END_VERSIONS
"""
}
26 changes: 20 additions & 6 deletions modules/nf-core/regtools/junctionsextract/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
]
],
"1": [
"versions.yml:md5,b2432b2a81fb72994ef780a8e979d853"
"versions.yml:md5,b8a1d662548217fc4607214fb7b4f42c"
],
"junc": [
[
Expand All @@ -24,15 +24,29 @@
]
],
"versions": [
"versions.yml:md5,b2432b2a81fb72994ef780a8e979d853"
"versions.yml:md5,b8a1d662548217fc4607214fb7b4f42c"
]
}
],
"meta": {
"nf-test": "0.9.2",
"nextflow": "24.10.1"
},
"timestamp": "2024-11-20T11:29:52.982213"
"timestamp": "2024-11-20T13:29:27.373772"
},
"versions": {
"content": [
{
"REGTOOLS_JUNCTIONSEXTRACT": {
"regtools": "0.5.0"
}
}
],
"meta": {
"nf-test": "0.9.2",
"nextflow": "24.10.1"
},
"timestamp": "2024-11-20T13:29:27.448238"
},
"homo_sapiens - bam-bai": {
"content": [
Expand All @@ -47,7 +61,7 @@
]
],
"1": [
"versions.yml:md5,b2432b2a81fb72994ef780a8e979d853"
"versions.yml:md5,b8a1d662548217fc4607214fb7b4f42c"
],
"junc": [
[
Expand All @@ -59,14 +73,14 @@
]
],
"versions": [
"versions.yml:md5,b2432b2a81fb72994ef780a8e979d853"
"versions.yml:md5,b8a1d662548217fc4607214fb7b4f42c"
]
}
],
"meta": {
"nf-test": "0.9.2",
"nextflow": "24.10.1"
},
"timestamp": "2024-11-20T11:29:48.572345"
"timestamp": "2024-11-20T13:29:23.165022"
}
}

0 comments on commit 3a185f6

Please sign in to comment.