Skip to content

Commit

Permalink
update rename dataset action to accept . in repeat input parameters, …
Browse files Browse the repository at this point in the history
…also when not using additional operations like '|basename'.

e.g. for filter bam 0.0.1: #{input_bams_0.input_bam} and #{input_bams_0.input_bam|basename} work.
And for filter bam 0.0.2: #{input_bams1} and #{input_bams2|basename} work.
  • Loading branch information
scholtalbers committed Nov 18, 2016
1 parent 33894ca commit 99000fb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/galaxy/jobs/actions/post.py
Expand Up @@ -124,13 +124,16 @@ def execute(cls, app, sa_session, action, job, replacement_dict):
if len(tokens) > 1:
input_file_var = tokens[0].strip()

# Treat . as special symbol (breaks parameter names anyway)
# to allow access to repeat elements, for instance first
# repeat in cat1 would be something like queries_0.input2.
input_file_var = input_file_var.replace(".", "|")

for i in range(1, len(tokens)):
operations.append(tokens[i].strip())

# Treat . as special symbol (breaks parameter names anyway)
# to allow access to repeat elements, for instance first
# repeat in cat1 would be something like queries_0.input2.
# TODO: update the help text (input_terminals) on the action to
# show correct valid inputs.
input_file_var = input_file_var.replace(".", "|")

replacement = ""
# Lookp through inputs find one with "to_be_replaced" input
# variable name, and get the replacement name
Expand Down

0 comments on commit 99000fb

Please sign in to comment.