Files
galaxy/test/functional/tools/implicit_conversion_shared_input_y.yml
mvdbeek c9c7e803e0 Resolve each data parameter to the dataset the job received for it
When one dataset feeds a parameter that accepts it as is and another
that needs an implicit conversion, the request names the same id for
both. runtimeify now passes each parameter's extensions to the
adapters, and the lookup picks the input whose datatype the parameter
accepts, checking the dataset itself before its conversions as the
tool action does.
2026-10-12 13:36:20 +02:00

47 lines
1.0 KiB
YAML

class: GalaxyTool
id: implicit_conversion_shared_input_y
name: implicit_conversion_shared_input_y
version: "0.1.0"
shell_command: |
echo 'formats: $(inputs.as_fasta.format) $(inputs.as_tabular.format)' &&
head -n 1 '$(inputs.as_fasta.path)' > as_fasta.txt &&
cut -f 1 '$(inputs.as_tabular.path)' > as_tabular.txt
inputs:
- name: as_fasta
type: data
format: fasta
- name: as_tabular
type: data
format: tabular
outputs:
- name: out_fasta
type: data
format: txt
from_work_dir: as_fasta.txt
- name: out_tabular
type: data
format: txt
from_work_dir: as_tabular.txt
tests:
- inputs:
as_fasta:
class: File
path: 1.fasta
filetype: fasta
as_tabular:
class: File
path: 1.fasta
filetype: fasta
outputs:
out_fasta:
asserts:
- has_line:
line: ">hg17"
out_tabular:
asserts:
- has_line:
line: "hg17"
assert_stdout:
- has_line:
line: "formats: fasta tabular"