Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing subworkflow name in template generation #2432

Closed
anoronh4 opened this issue Sep 21, 2023 · 0 comments
Closed

missing subworkflow name in template generation #2432

anoronh4 opened this issue Sep 21, 2023 · 0 comments
Labels
Milestone

Comments

@anoronh4
Copy link
Contributor

anoronh4 commented Sep 21, 2023

Description of the bug

When creating a subworkflow using nf-core tools, the entered name is missing from the subworkflow main.nf, the test main.nf and the test test.yml files.

This issue does not seem to occur in module creation.

Command used and terminal output

$ nf-core subworkflows create any_subworkflow

                                          ,--./,-.
          ___     __   __   __   ___     /,-._.--~\
    |\ | |__  __ /  ` /  \ |__) |__         }  {
    | \| |       \__, \__/ |  \ |___     \`-._,-`-,
                                          `._,._,'

    nf-core/tools version 2.9 - https://nf-co.re


INFO     Repository type: modules                                                                                                    
INFO     Press enter to use default values (shown in brackets) or type your own responses. ctrl+click underlined text to open links. 
GitHub Username: (@author): @anoronh4
INFO     Created / edited following files:                                                                                           
           ./subworkflows/nf-core/any_subworkflow/main.nf                                                                            
           ./subworkflows/nf-core/any_subworkflow/meta.yml                                                                           
           ./tests/subworkflows/nf-core/any_subworkflow/main.nf                                                                      
           ./tests/subworkflows/nf-core/any_subworkflow/test.yml                                                                     
           ./tests/subworkflows/nf-core/any_subworkflow/nextflow.config                                                              
           ./tests/config/pytest_modules.yml                                                          

$ cat ./subworkflows/nf-core/any_subworkflow/main.nf | grep ^workflow 
workflow  {
$ cat tests/subworkflows/nf-core/any_subworkflow/test.yml | grep name
- name: ""
$ cat tests/subworkflows/nf-core/any_subworkflow/main.nf 
#!/usr/bin/env nextflow

nextflow.enable.dsl = 2

include {  } from '../../../../subworkflows/nf-core//main.nf'

workflow test_any_subworkflow {
    
    input = file(params.test_data['sarscov2']['illumina']['test_single_end_bam'], checkIfExists: true)

     ( input )
}



### System information

nf-core version 2.9
Python 3.10.8
nextflow version 23.04.2.5870
CentOS7 linux
local executor
HPC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants