Mercurial > repos > siwaa > wine_quality
comparison wine_quality.xml.VENDREDI @ 2:c1b75945752a draft
planemo upload for repository https://forgemia.inra.fr/nathalie.rousse/use/-/tree/dnn/DNN/galaxy-tools/wine_quality commit c595a7b4b556ab642ecf0396957f2959139dc4ab-dirty
author | siwaa |
---|---|
date | Mon, 09 Dec 2024 10:31:09 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1:c3841488b88d | 2:c1b75945752a |
---|---|
1 <tool id="wine_quality" name="wine_quality" version="1.0.0"> | |
2 | |
3 <description>wine_quality</description> | |
4 | |
5 <requirements> | |
6 | |
7 <!-- singularity --> | |
8 <container type="singularity">oras://registry.forgemia.inra.fr/nathalie.rousse/use/dnn_fidlemore:6d159f79349e231deadb738f79bd293c1a8dadd3</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_variable name="FIDLE_DATASETS_DIR">/fidle-tp/datasets-fidle</environment_variable> | |
17 </environment_variables> | |
18 <command detect_errors="aggressive"> | |
19 <![CDATA[ | |
20 . /fidle-tp/fidle-env/bin/activate; | |
21 mkdir /fidle-tp/fidle-env/cache_dir; export TRANSFORMERS_CACHE=/fidle-tp/fidle-env/cache_dir; | |
22 mkdir /fidle-tp/fidle-env/mpl_dir; export MPLCONFIGDIR=/fidle-tp/fidle-env/mpl_dir; | |
23 /bin/bash -c "python3 $__tool_directory__/wine_quality.py -model_ckpt_filepath ${model_ckpt} -norm_config_json_filepath ${norm_config_json} -data '${datajson_text}'"; | |
24 cp OUTPUTS/quality.txt ${quality_txt}; | |
25 ]]> | |
26 </command> | |
27 | |
28 <inputs> | |
29 <param name="datajson_text" optional="false" type="text" area="true" | |
30 label="Data of wine whose quality to be predicted (json as text)"/> | |
31 <param name="model_ckpt" optional="false" type="data" format="ckpt" | |
32 label="model_ckpt model file (.ckpt)"/> | |
33 <param name="norm_config_json" optional="false" type="data" format="json" | |
34 label="norm_config normalization configuration (.json)"/> | |
35 </inputs> | |
36 | |
37 <outputs> | |
38 <data format="txt" name="quality_txt" label="quality (.txt)"/> | |
39 </outputs> | |
40 | |
41 <tests> | |
42 </tests> | |
43 | |
44 <help><![CDATA[ | |
45 | |
46 wine_quality.xml | |
47 | |
48 =========================== | |
49 | |
50 Code: | |
51 | |
52 ---- | |
53 | |
54 - wine_quality.py | |
55 | |
56 Inputs: | |
57 | |
58 ------- | |
59 | |
60 - data json as text : data of wine for which quality is going to be predicted. | |
61 | |
62 - example : | |
63 | |
64 - {"fixed acidity": 11.2, "volatile acidity": 0.28, "citric acid": 0.56, "residual sugar": 1.9, "chlorides": 0.075, "free sulfur dioxide": 17, "total sulfur dioxide": 60, "density": 0.998, "pH": 3.16, "sulphates": 0.58, "alcohol": 9.8} | |
65 | |
66 - Model file (.ckpt) | |
67 | |
68 - Normalization configuration file (.json) | |
69 | |
70 Outputs: | |
71 | |
72 -------- | |
73 | |
74 - Quality file (.txt) | |
75 | |
76 Credits: | |
77 | |
78 -------- | |
79 | |
80 - Author: Nathalie Rousse nathalie.rousse@inrae.fr | |
81 - Copyright: INRAE | |
82 | |
83 ]]> | |
84 </help> | |
85 | |
86 </tool> |