Mercurial > repos > siwaa > wine_quality_predict
comparison wine_quality_predict.xml.VENDREDI @ 4:e88a46bee6e5 draft
planemo upload for repository https://forgemia.inra.fr/nathalie.rousse/use/-/tree/dnn/DNN/galaxy-tools/wine_quality_predict commit c595a7b4b556ab642ecf0396957f2959139dc4ab-dirty
author | siwaa |
---|---|
date | Mon, 09 Dec 2024 10:53:55 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:01bf4f689614 | 4:e88a46bee6e5 |
---|---|
1 <tool id="wine_quality_predict" name="wine_quality_predict" version="1.0.0"> | |
2 | |
3 <description>wine_quality_predict</description> | |
4 | |
5 <requirements> | |
6 | |
7 <!-- singularity --> | |
8 <container type="singularity">oras://registry.forgemia.inra.fr/nathalie.rousse/use/dnn_fidlemore:1906137478520a9f71a4d8996c0a8827f27aed16</container> | |
9 | |
10 <!-- image locale | |
11 <container type="singularity">/home/nrousse/workspace_git/SIWAA_regroup/USE_branch_dnn/use/DNN/containers/fidlemore.simg</container --> | |
12 | |
13 </requirements> | |
14 | |
15 <environment_variables> | |
16 </environment_variables> | |
17 <command detect_errors="aggressive"> | |
18 <![CDATA[ | |
19 | |
20 bash -e -c "source /fidle-tp/fidle-env/bin/activate && | |
21 mkdir datasets-fidle && | |
22 export FIDLE_DATASETS_DIR=\$(realpath -s datasets-fidle) && | |
23 mkdir ipython_dir && | |
24 export IPYTHONDIR=\$(realpath -s ipython_dir) && | |
25 ipython profile create default && | |
26 mkdir cache_dir && | |
27 export TRANSFORMERS_CACHE=\$(realpath -s cache_dir) && | |
28 mkdir mpl_dir && | |
29 export MPLCONFIGDIR=\$(realpath -s mpl_dir) && | |
30 python3 /fidlemore/model_wine_lightning/wine_quality_predict.py -model_ckpt_filepath ${model_ckpt} -norm_config_json_filepath ${norm_config_json} -data_json_filepath ${data_json} && | |
31 cp OUTPUTS/report.json ${report_json}" | |
32 ]]> | |
33 </command> | |
34 | |
35 <inputs> | |
36 <param name="data_json" optional="false" type="data" format="json" | |
37 label="File of data of wine whose quality to be predicted (.json)"/> | |
38 <param name="model_ckpt" optional="false" type="data" format="ckpt" | |
39 label="model_ckpt model file (.ckpt)"/> | |
40 <param name="norm_config_json" optional="false" type="data" format="json" | |
41 label="norm_config normalization configuration (.json)"/> | |
42 </inputs> | |
43 | |
44 <outputs> | |
45 <data format="json" name="report_json" label="report (.json)"/> | |
46 </outputs> | |
47 | |
48 <tests> | |
49 </tests> | |
50 | |
51 <help><![CDATA[ | |
52 | |
53 wine_quality_predict.xml | |
54 | |
55 =========================== | |
56 | |
57 Code: | |
58 | |
59 ---- | |
60 | |
61 - wine_quality_predict.py | |
62 | |
63 Inputs: | |
64 | |
65 ------- | |
66 | |
67 - data file (.json) : | |
68 File containing data of wine for which quality is going to be predicted. | |
69 | |
70 - Model file (.ckpt) | |
71 | |
72 - Normalization configuration file (.json) | |
73 | |
74 Outputs: | |
75 | |
76 -------- | |
77 | |
78 - Report file (.json) | |
79 | |
80 Credits: | |
81 | |
82 -------- | |
83 | |
84 - Author: Nathalie Rousse nathalie.rousse@inrae.fr | |
85 - Copyright: INRAE | |
86 | |
87 ]]> | |
88 </help> | |
89 | |
90 </tool> |