Skip to content

Creation of FAQ for using workflow variables to rename outputs#5267

Open
Delphine-L wants to merge 3 commits intogalaxyproject:mainfrom
Delphine-L:wkflparam
Open

Creation of FAQ for using workflow variables to rename outputs#5267
Delphine-L wants to merge 3 commits intogalaxyproject:mainfrom
Delphine-L:wkflparam

Conversation

@Delphine-L
Copy link
Copy Markdown
Contributor

The FAQ describes :

  • How to create a workflow variable with a workflow text input
  • How to use that variable to rename an output in the workflow editor

@github-actions github-actions Bot added the faqs label Aug 28, 2024
@Delphine-L Delphine-L marked this pull request as ready for review September 6, 2024 17:28
2. Click on **Inputs** in the toolbar on the left
3. Click on **Simple inputs used for Workflow logic**
4. Click on the created input box in the workflow editor
5. Label your input. Example: `Species Name`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it would be useful to overwrite this example name from within tutorials.

See for example https://raw.githubusercontent.com/galaxyproject/training-material/a8c16060c1a15f5109d46a10ca36d0e9dbad1597/faqs/galaxy/datasets_import_via_link.md

Comment thread faqs/galaxy/workflows_variables.md Outdated
Comment thread faqs/galaxy/workflows_variables.md Outdated
Comment thread faqs/galaxy/workflows_variables.md Outdated

Workflow text inputs can be used as parameters for tools but also in the workflow editor for renaming files.

{% if include.var_name %}
Copy link
Copy Markdown
Member

@shiltemann shiltemann Sep 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of this big if/else case, you can also just do {{ include.var_name | default: "Species Name" }} to default to a value if no include variable provided

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants