comparison predict_activity.xml @ 0:7d5a86725094 draft

planemo upload commit e713bcfa1b1690f9a21ad0bd796c2d385f646e66-dirty
author anmoljh
date Mon, 12 Jun 2017 09:18:21 -0400
parents
children ca24a7d362b5
comparison
equal deleted inserted replaced
-1:000000000000 0:7d5a86725094
1 <tool id="predict_activity" name="Predict Activity" version="1.0">
2 <description>
3 used to predict activity based on given model
4 </description>
5 <requirements>
6 <requirement type="package" version="3.2.1">R</requirement>
7 <requirement type="package" version="1.0">carettools</requirement>
8 </requirements>
9 <stdio>
10 <exit_code range="1:" />
11 </stdio>
12
13 <command interpreter="Rscript">predict_activity.R $file1 $model $output1 2>/dev/null </command>
14
15 <inputs>
16 <param name="model" type="data" format="data" label="Select Model" help="Select built model obtained from caret tool 'Create script from the template file'." />
17 <param name="file1" type="data" format="csv" label="Select file have descriptor data for activity prediction" help="csv format" />
18 </inputs>
19
20 <outputs>
21 <data format="txt" name="output1" label="Prediction on $file1.name" />
22 </outputs>
23
24 <tests>
25 <test>
26 <param name="model" value="MODEL.RData" />
27 <param name="file1" value="Descriptors_File_of_prediction_set.csv" />
28 <output name="output1" file="Prediction_on_Descriptors_File_of_prediction_set.txt" compare="sim_size" delta="90000" />
29 </test>
30 </tests>
31
32 <help>
33
34 .. class:: infomark
35
36 Make sure this file **must** contain **all** or **more features** than **input** "csv file" used for **model building**
37
38 ----------
39
40 **Input "csv file" must be as follows**
41
42 ----------
43
44
45 Example file:-
46
47
48
49 # example.csv
50
51 feature1,feature2,feature3,..,featureN
52
53 ro1 234,2.3,34,7,..,0.9
54
55 ro2 432,3.4,23.1,12,..,0.12
56
57 ro3 692,23,12.2,19,..,0.14
58
59
60 -----------
61
62 **MODEL**
63
64 Choose model file received from model building step.
65
66 Model file has "data" file format can be seen by
67
68 clicking on output files shown in history .
69
70 </help>
71
72 </tool>