13 months ago by
United States
Hello,
The variable ${input}
is commonly the name of the input file if there is just one, but not always. When editing a workflow, the actual variable for a specific input file is given in the area where outputs can be renamed. Perhaps use that information to develop the script? This is included in each tool wrapper as well - the variables used to denote specific inputs.
So, the variables can vary. For example, MACS2 has two inputs: "input_treatment_file" and "input_control_file". Using ${input_treatment_file}
in the new label will capture the dataset name associated with the "input_treatment_file". This can be combined with custom text to create a custom output dataset name.
Hope that helps! Jen, Galaxy team