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
|
4
|
0
|
5 <stdio>
|
|
6 <exit_code range="1:" level="fatal" />
|
|
7 </stdio>
|
|
8
|
|
9
|
|
10 <command><![CDATA[
|
3
|
11 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 && $__root_dir__/packages/scilab-6.1.1/bin/scilab-cli -nb -quit -f $* < ${script_file}; else $__root_dir__/packages/scilab-6.1.1/bin/scilab-cli -nb -quit -f $* < ${script_file}; fi
|
0
|
12 ]]>
|
|
13 </command>
|
|
14
|
|
15
|
|
16 <configfiles>
|
|
17 <configfile name="script_file">
|
|
18 <![CDATA[ if ~isdef('pls') then ...
|
|
19 atomsSystemUpdate(); ...
|
|
20 atomsInstall('FACT'); ...
|
|
21 atomsLoad('FACT'); ...
|
|
22 end; ...
|
3
|
23 x=glx_tab2div("${Xdata.file_name}"); ...
|
|
24 y=2*x; ...
|
|
25 div2tab(y,"${Result}") ]]>
|
0
|
26 </configfile>
|
|
27 </configfiles>
|
|
28
|
|
29
|
|
30 <inputs>
|
3
|
31 <param name="Xdata" 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
|
5
|
57 <help>
|
0
|
58
|
|
59
|
5
|
60 **Authors** Jean-claudeBoulet (INRAE)
|
0
|
61
|
|
62 ----------------------------------------------------------------------
|
|
63
|
|
64
|
|
65 ===========================================
|
|
66 INSTALLATION OF SCILAB AND ITS FACT TOOLBOX
|
|
67 ===========================================
|
|
68
|
|
69
|
|
70 -----------
|
|
71 Description
|
|
72 -----------
|
|
73
|
|
74 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.
|
|
75
|
|
76 Once Scilab+Fact have been correctly installed, this function can be removed from the Galaxy menu.
|
|
77
|
|
78
|
|
79 -----------
|
|
80 Input files
|
|
81 -----------
|
|
82
|
|
83
|
|
84 **Xvalue**
|
|
85
|
|
86 An integer
|
|
87
|
1
|
88
|
0
|
89 ------------
|
|
90 Output files
|
|
91 ------------
|
|
92
|
|
93 **Result**
|
|
94
|
|
95 The input value multiplied by 2
|
|
96
|
|
97 </help>
|
|
98
|
|
99
|
|
100 <citations>
|
1
|
101
|
0
|
102 </citations>
|
|
103
|
|
104 </tool>
|