Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Subworkflow install is not properly finding modules with "_" #2098

@fmalmeida

Description

@fmalmeida

Description of the bug

When installing a sub-workflow from private repository with ssh, the modules linked to that sub-workflow are not properly downloaded and installed.

However, these same modules can be properly listed and installed directly with nf-core modules command.

Command used and terminal output

When installing a custom subworkflow from a private repo using ssh:


$ nf-core subworkflows -g ssh://[email protected] install my_subworkflow

INFO:    Using cached SIF image

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

    nf-core/tools version 2.7.dev0 - https://nf-co.re                                                                        
                                                                                                                                                    
         STDERR:                                                                                                                                    
INFO     Installing 'my_subworkflow'                                                                                                                   
WARNING  There was an error running the prettier pre-commit hook.                                                                                 
                                                                                                                                                    
         STDERR:                                                                                                                                    
ERROR    Module 'create/mdr/file/object' not found in list of available modules.                                                                    
INFO     Use the command 'nf-core modules list' to view available software                                                                          
ERROR    Module 'create/results/and/map/to/files' not found in list of available modules.                                                           
INFO     Use the command 'nf-core modules list' to view available software
[ ... ]                                                                    
INFO     Use the following statement to include this subworkflow:                                                                                   
                                                                                                                                                    
 include { MY_SUBWORKFLOW } from '../subworkflows/falmeida/my_subworkflow/main'


But these modules are properly there and can be listed and downloaded:

```bash
$ nf-core modules -g ssh://[email protected] list remote
INFO:    Using cached SIF image

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

    nf-core/tools version 2.7.dev0 - https://nf-co.re


INFO     Modules available from ssh://[email protected] (master):                                                                     
                                                                                                                                                                                      
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Module Name                            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ falmeida/createmdrfileobject           │
│ falmeida/createresultsandmaptofiles    │
│ [...]                                  │
└────────────────────────────────────────┘


### System information

Nextflow v22.10.1
HPC
nf-core tools version v2.7.dev0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions