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

How to output a file ? #52

Open
dridk opened this issue Mar 5, 2021 · 1 comment
Open

How to output a file ? #52

dridk opened this issue Mar 5, 2021 · 1 comment

Comments

@dridk
Copy link

dridk commented Mar 5, 2021

I don't know how to specify the output filename ! Using type = local_file create a file output inside the output folder. But I want a file named "merged.vcf" .

workflow:
    steps:
      - name: Step1 
        cmd: /bin/bash run.sh $input > $output
        bash: true

    inputs:
      - id: input
        description: a zip folder with many VCF 
        type: local_file

    outputs:
      - id: output
        description: Merged vcf file 
        type: local_file
@alisongonpereira
Copy link

I don't know if you still trying with cloudgene, but a workaround would be do define a output folder and write your files there with a custom input name (you are gonna need a new variable in the input. Would be something like:

workflow:
steps:
- name: Step1
cmd: /bin/bash run.sh $input > "${output}/${filePrefix}.merged.vcf.gz"
bash: true

inputs:
  - id: input
    description: a zip folder with many VCF 
    type: local_file

  - id: filePrefix
    description: name your output
    type: text

outputs:
  - id: output
    description: Merged vcf folder
    type: local_folder

Maybe this works? My knowledge of where the "{" goes is kinda limited

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants