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

[BUG] Nextflow runner does not take into account alternatives #707

Open
2 tasks done
DriesSchaumont opened this issue May 17, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@DriesSchaumont
Copy link
Contributor

DriesSchaumont commented May 17, 2024

What happened?

Currently alternatives are ignored by the nextflow runner.

Steps to reproduce

mkdir -p /tmp/test_bug
cd /tmp/test_bug
cat > _viash.yaml << 'HERE'
viash_version: 0.8.6

source: src
target: target
HERE

mkdir -p src/dummycomponent



cat > src/dummycomponent/config.vsh.yaml << 'HERE'
functionality:
  name: myscript
  namespace: "dummycomponent"
  arguments:
    - name: "--input_test"
      alternatives: ["-i"]
      type: integer
  resources:
    - type: python_script
      path: script.py
      text: |
        if not par["input_test"]:
          raise ValueError(f"{par['input_test']}")
platforms:
  - type: nextflow
HERE

viash ns build

nextflow run . -main-script target/nextflow/dummycomponent/myscript/main.nf --i 10

Expected behavior

Can use both --i and --input_test

Relevant log output

Command error:
  Traceback (most recent call last):
    File ".viash_script.sh", line 26, in <module>
      raise ValueError(f"{par['input_test']}")
  ValueError: None

Version

Viash 0.8.6

Possible solution

/

Confirmation

  • I have searched the existing issues to make sure this is not a duplicate.
  • I have provided clear and concise information about the bug.

Additional context

No response

@DriesSchaumont DriesSchaumont added the bug Something isn't working label May 17, 2024
@DriesSchaumont DriesSchaumont changed the title [BUG] Workflow arguments do not take into account alternatives [BUG] Nextflow runner does not take into account alternatives May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant