Mercurial > repos > ximgchess > chap_test_20230411
annotate inference/chapmlaas.xml @ 161:f524e7c848f6 draft
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit bd55c86b9f7bfabff0bbec1f10704850fec82f02-dirty
author | ximgchess |
---|---|
date | Fri, 30 Jun 2023 15:48:59 +0000 |
parents | 49985da419b8 |
children |
rev | line source |
---|---|
133
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
1 <tool id="CHAP_inference_demo" name="CHAP MLaaS" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" python_template_version="@PYTHON_TEMPLATE_VERSION@" profile="@PROFILE@"> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
2 <macros> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
3 <import>../macros.xml</import> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
4 </macros> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
5 <requirements> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
6 <requirement type="package" version="2.28.2">requests</requirement> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
7 <expand macro="chap-requirement" /> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
8 </requirements> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
9 <command detect_errors="exit_code"><![CDATA[ |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
10 cp '$input' data.csv && |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
11 cp '$image' img.png && |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
12 CHAP --config '$config' && |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
13 cp preds.json '$output' |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
14 ]]></command> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
15 <inputs> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
16 <param type="data" name="config" format="yaml" /> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
17 <param type="data" name="input" format="csv" /> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
18 <param type="data" name="image" format="png" /> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
19 </inputs> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
20 <outputs> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
21 <data name="output" format="json" /> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
22 </outputs> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
23 <tests> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
24 <test> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
25 <param name="config" value="config.yaml"/> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
26 <param name="input" value="data.csv"/> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
27 <param name="image" value="img.png"/> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
28 </test> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
29 </tests> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
30 <help><![CDATA[ |
0
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
31 CHESS Analysis Pipeline (CHAP) with Machine Learning as a Service (MLaaS) |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
32 |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
33 To run it you need the following: |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
34 1. Working TFaaS server |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
35 2. A pipeline config with TFaaS, e.g. |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
36 |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
37 pipeline: |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
38 - reader.Reader: |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
39 filename: data.csv |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
40 - processor.Processor: {} |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
41 - reader.BinaryFileReader: |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
42 filename: img.png |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
43 - processor.TFaaSImageProcessor: |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
44 url: "http://localhost:8083" |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
45 model: mnist |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
46 verbose: true |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
47 - writer.Writer: |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
48 filename: preds.json |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
49 |
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
50 ]]></help> |
133
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
51 <citations> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
52 <expand macro="chap-citation" /> |
49985da419b8
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 85285b9b70eaf7c5db051ed50b000339023ccdf2-dirty
ximgchess
parents:
128
diff
changeset
|
53 </citations> |
0
47d2a1f087d1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit fe909397cd829fe9a784a810d0264ab1751ae090-dirty
ximgchess
parents:
diff
changeset
|
54 </tool> |