comparison ludwig_autogenconfig.xml @ 0:183adfc24076 draft default tip

planemo upload for repository https://github.com/goeckslab/Galaxy-Ludwig.git commit bdea9430787658783a51cc6c2ae951a01e455bb4
author goeckslab
date Tue, 07 Jan 2025 22:46:36 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:183adfc24076
1 <tool id="ludwig_config_generator" name="Ludwig Config Generator" version="@VERSION@" profile="@PROFILE@">
2 <description>Auto-generate a config file from a dataset for Ludwig training.</description>
3 <macros>
4 <import>ludwig_macros.xml</import>
5 </macros>
6 <expand macro="python_requirements_gpu" />
7 <expand macro="macro_stdio" />
8 <version_command>echo "@VERSION@"</version_command>
9 <command>
10 <![CDATA[
11 #import re
12 #if $input_file
13 #set $sanitized_input_file = re.sub('[^\w\-_\.]', '_', $input_file.element_identifier.strip())
14 ln -sf '$input_file' "./${sanitized_input_file}";
15 #end if
16 python '$__tool_directory__/ludwig_autogenconfig.py'
17 #if $input_file
18 --dataset "./${sanitized_input_file}"
19 #end if
20 --output_feature '$output_feature'
21 --output '$output'
22 #if $renderconfig
23 '$renderconfig'
24 #end if
25 ]]>
26 </command>
27 <inputs>
28 <param name="input_file" type="data" label="Select CSV File" format="tabular,csv" help="Choose a dataset file for processing">
29
30 </param>
31 <param name="output_feature" multiple="false" type="data_column" use_header_names="true" data_ref="input_file" label="Select target column(s):" />
32 <param name="renderconfig" type="boolean" checked="true" label="Rendered config?"
33 truevalue="--renderconfig" falsevalue="" />
34 </inputs>
35
36 <outputs>
37 <data name="output" format="yaml" label="${tool.name} config on ${on_string}" />
38 </outputs>
39
40 <tests>
41 <test>
42 <param name="input_file" value="temperature_la.csv" />
43 <param name="output_feature" value="2" />
44 <param name="renderconfig" value="false" />
45 <output name="output" value="ludwig_auto_config.yaml" />
46 </test>
47 </tests>
48 <help>
49 Auto-generate a config file from a dataset for Ludwig training.
50 </help>
51 <expand macro="macro_citations" />
52 </tool>