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

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Delphine-L
Copy link
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
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

faqs/galaxy/workflows_variables.md Outdated Show resolved Hide resolved
faqs/galaxy/workflows_variables.md Outdated Show resolved Hide resolved
faqs/galaxy/workflows_variables.md Outdated Show resolved Hide resolved

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
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