Skip to content

Commit

Permalink
change name to star/indexversion
Browse files Browse the repository at this point in the history
  • Loading branch information
nvnieuwk committed Feb 25, 2025
1 parent 3d241a1 commit cfcc9c4
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 63 deletions.
48 changes: 0 additions & 48 deletions modules/nf-core/star/help/tests/main.nf.test.snap

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
process STAR_HELP {
process STAR_INDEXVERSION {
label 'process_single'

conda "${moduleDir}/environment.yml"
Expand All @@ -7,16 +7,16 @@ process STAR_HELP {
'community.wave.seqera.io/library/htslib_samtools_star_gawk:ae438e9a604351a4' }"

output:
path("*.txt") , emit: help
path("*.txt") , emit: index_version
path "versions.yml" , emit: versions

when:
task.ext.when == null || task.ext.when

script:
def prefix = task.ext.prefix ?: "help"
def prefix = task.ext.prefix ?: "index_version"
"""
STAR --help > ${prefix}.txt
STAR --help | grep 'versionGenome' | sed -e 's/versionGenome[ \t]*//' | sed -e 's/ .*//' > ${prefix}.txt
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand All @@ -27,9 +27,9 @@ process STAR_HELP {
"""

stub:
def prefix = task.ext.prefix ?: "help"
def prefix = task.ext.prefix ?: "index_version"
"""
STAR --help > ${prefix}.txt
STAR --help | grep 'versionGenome' | sed -e 's/versionGenome[ \t]*//' | sed -e 's/ .*//' > ${prefix}.txt
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json
name: "star_help"
description: Get the help message from STAR
name: "star_indexversion"
description: Get the minimal allowed index version from STAR
keywords:
- help
- message
- index
- version
- rna
tools:
- star:
Expand All @@ -18,10 +18,10 @@ tools:
identifier: biotools:star

output:
- help:
- index_version:
- "*.txt":
type: file
description: File with the help message
description: File with the minimal index version
pattern: "*.txt"

- versions:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
nextflow_process {

name "Test Process STAR_HELP"
name "Test Process STAR_INDEXVERSION"
script "../main.nf"
process "STAR_HELP"
process "STAR_INDEXVERSION"

tag "modules"
tag "modules_nfcore"
tag "star"
tag "star/help"
tag "star/indexversion"

test("normal run") {

Expand Down
48 changes: 48 additions & 0 deletions modules/nf-core/star/indexversion/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"normal run": {
"content": [
{
"0": [
"index_version.txt:md5,184a6b325b4ac98bd08ffc0bd8f046cd"
],
"1": [
"versions.yml:md5,003e8e66b98a702010f209d5049eeabc"
],
"index_version": [
"index_version.txt:md5,184a6b325b4ac98bd08ffc0bd8f046cd"
],
"versions": [
"versions.yml:md5,003e8e66b98a702010f209d5049eeabc"
]
}
],
"meta": {
"nf-test": "0.9.2",
"nextflow": "24.10.4"
},
"timestamp": "2025-02-25T13:06:11.149770431"
},
"stub run": {
"content": [
{
"0": [
"index_version.txt:md5,184a6b325b4ac98bd08ffc0bd8f046cd"
],
"1": [
"versions.yml:md5,003e8e66b98a702010f209d5049eeabc"
],
"index_version": [
"index_version.txt:md5,184a6b325b4ac98bd08ffc0bd8f046cd"
],
"versions": [
"versions.yml:md5,003e8e66b98a702010f209d5049eeabc"
]
}
],
"meta": {
"nf-test": "0.9.2",
"nextflow": "24.10.4"
},
"timestamp": "2025-02-25T13:06:16.834272136"
}
}

0 comments on commit cfcc9c4

Please sign in to comment.