Rename workflow output based on input name

This problem applies to both web-based galaxy and 19.05 local.

What’s the current way to rename output based on input name?
current workflow: input database -> Trim Galore! (paired-end)
I tried to rename output as #{input1}_trimmed, #{input_name}_trimmed, #{input1}_trimmed, and for all of them I got _trimmed as new file name. What should I put inside { }?
https://galaxyproject.org/learn/advanced-workflow/variables/

Since I am trying to assemble about 100 sequences, default naming does not allow me to keep track of them.

1 Like

Hi @ZhuYi_Wang

You may have figured this out already – different tools name the “valid input variables” in different ways. The workflow editor prompts with the proper variable(s), per tool.

Two screenshots as examples. The first is the tool you are using:

Hope that helps!