diff inference/chapmlaas.xml @ 0:47d2a1f087d1 draft

planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
author ximgchess
date Tue, 11 Apr 2023 14:41:16 +0000
parents
children d8baf7dafbd8
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/inference/chapmlaas.xml	Tue Apr 11 14:41:16 2023 +0000
@@ -0,0 +1,59 @@
+<tool id="CHAP_inference_demo" name="CHAP MLaaS" version="0.1.0+galaxy0" python_template_version="3.5" profile="21.05">
+    <requirements>
+        <requirement type="package" version="2.28.2">requests</requirement>
+        <requirement type="package" version="0.0.2">chessanalysispipeline</requirement>
+    </requirements>
+    <command detect_errors="exit_code"><![CDATA[
+        cp '$input' data.csv &&
+        cp '$image' img.png &&
+        CHAP --config '$config' &&
+        cp preds.json '$output'
+    ]]></command>
+    <inputs>
+        <param type="data" name="config" format="yaml" />
+        <param type="data" name="input" format="csv" />
+        <param type="data" name="image" format="png" />
+    </inputs>
+    <outputs>
+        <data name="output" format="json" />
+    </outputs>
+    <tests>
+        <test>
+            <param name="config" value="config.yaml"/>
+            <param name="input" value="data.csv"/>
+            <param name="image" value="img.png"/>
+        </test>
+    </tests>
+    <help><![CDATA[
+CHESS Analysis Pipeline (CHAP) with Machine Learning as a Service (MLaaS)
+
+To run it you need the following:
+1. Working TFaaS server
+2. A pipeline config with TFaaS, e.g.
+
+pipeline:
+  - reader.Reader:
+      filename: data.csv
+  - processor.Processor: {}
+  - reader.BinaryFileReader:
+      filename: img.png
+  - processor.TFaaSImageProcessor:
+      url: "http://localhost:8083"
+      model: mnist
+      verbose: true
+  - writer.Writer:
+      filename: preds.json
+
+    ]]></help>
+    <citations>
+        <citation type="bibtex">
+@misc{githubChessAnalysisPipeline,
+  author = {Kuznetsov, Valentin},
+  year = {2023},
+  title = {ChessAnalysisPipeline},
+  publisher = {GitHub},
+  journal = {GitHub repository},
+  url = {https://github.com/CHESSComputing/ChessAnalysisPipeline},
+}</citation>
+    </citations>
+</tool>