0
|
1 <tool id="V19.10_inst_scilab" name="Install Scilab-6.1.1" version="0.0.1">
|
|
2 <description> install scilab </description>
|
|
3
|
|
4 <stdio>
|
|
5 <exit_code range="1:" level="fatal" />
|
|
6 </stdio>
|
|
7
|
|
8
|
|
9 <command><![CDATA[
|
|
10 if [ ! -d $__root_dir__/packages/scilab-6.1.1 ]; then wget -P $__root_dir__/packages/ https://www.scilab.org/download/6.1.1/scilab-6.1.1.bin.linux-x86_64.tar.gz && tar -xvf $__root_dir__/packages/scilab-6.1.1.bin.linux-x86_64.tar.gz -C $__root_dir__/packages/ && rm $__root_dir__/packages/scilab-6.1.1.bin.linux-x86_64.tar.gz; else $__root_dir__/packages/scilab-6.1.1/bin/scilab-cli -nb -quit -f $* < ${script_file}; fi
|
|
11 ]]>
|
|
12 </command>
|
|
13
|
|
14
|
|
15 <configfiles>
|
|
16 <configfile name="script_file">
|
|
17 <![CDATA[ if ~isdef('pls') then ...
|
|
18 atomsSystemUpdate(); ...
|
|
19 atomsInstall('FACT'); ...
|
|
20 atomsLoad('FACT'); ...
|
|
21 end; ...
|
|
22 x=${Xvalue}; ...
|
|
23 y=2*div(x); ...
|
|
24 y2=y.d; ...
|
1
|
25 ${Result}=y2; ]]>
|
0
|
26 </configfile>
|
|
27 </configfiles>
|
|
28
|
|
29
|
|
30 <inputs>
|
1
|
31 <param name="Xvalue" type="data" formar="tabular" label="Input matrix of data" />
|
0
|
32 </inputs>
|
|
33
|
|
34
|
|
35 <outputs>
|
1
|
36 <data name="Result" format="tabular" label="Res"/>
|
0
|
37 </outputs>
|
|
38
|
1
|
39 <tests>
|
|
40 <test>
|
|
41 <param name="Xvalue" value="X2.tabular"/>
|
|
42
|
|
43 <output name="Result" >
|
|
44 <assert_contents>
|
|
45 <has_text text="436"/>
|
|
46 <has_text text="4240"/>
|
|
47 </assert_contents>
|
|
48 </output>
|
|
49
|
|
50 </test>
|
|
51 </tests>
|
|
52
|
|
53
|
|
54
|
|
55
|
0
|
56
|
|
57 <help><![CDATA[
|
|
58
|
1
|
59 .. class:: warningmark
|
0
|
60
|
1
|
61 **TIP:** If your data is not TAB delimited, use *Convert format data Tools->Convert*
|
0
|
62
|
|
63 ----------------------------------------------------------------------
|
|
64
|
|
65
|
|
66 ===========================================
|
|
67 INSTALLATION OF SCILAB AND ITS FACT TOOLBOX
|
|
68 ===========================================
|
|
69
|
|
70
|
|
71 -----------
|
|
72 Description
|
|
73 -----------
|
|
74
|
|
75 This functions performs two processes: 1) the download + unzip of Scilab-6.1.1 in the folder: galaxy/packages/scilab-6.1.1, 2) the installation of the FACT toolbox in Scilab.
|
|
76
|
|
77 Once Scilab+Fact have been correctly installed, this function can be removed from the Galaxy menu.
|
|
78
|
|
79
|
|
80 -----------
|
|
81 Input files
|
|
82 -----------
|
|
83
|
|
84
|
|
85 **Xvalue**
|
|
86
|
|
87 An integer
|
|
88
|
1
|
89
|
0
|
90 ------------
|
|
91 Output files
|
|
92 ------------
|
|
93
|
|
94 **Result**
|
|
95
|
|
96 The input value multiplied by 2
|
|
97
|
|
98
|
|
99 ]]>
|
|
100 </help>
|
|
101
|
|
102
|
|
103 <citations>
|
1
|
104
|
0
|
105 </citations>
|
|
106
|
|
107 </tool>
|