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[
|
3
|
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 && $__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
|
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; ...
|
3
|
22 x=glx_tab2div("${Xdata.file_name}"); ...
|
|
23 y=2*x; ...
|
|
24 div2tab(y,"${Result}") ]]>
|
0
|
25 </configfile>
|
|
26 </configfiles>
|
|
27
|
|
28
|
|
29 <inputs>
|
3
|
30 <param name="Xdata" type="data" formar="tabular" label="Input matrix of data" />
|
0
|
31 </inputs>
|
|
32
|
|
33
|
|
34 <outputs>
|
1
|
35 <data name="Result" format="tabular" label="Res"/>
|
0
|
36 </outputs>
|
|
37
|
1
|
38 <tests>
|
|
39 <test>
|
|
40 <param name="Xvalue" value="X2.tabular"/>
|
|
41
|
|
42 <output name="Result" >
|
|
43 <assert_contents>
|
|
44 <has_text text="436"/>
|
|
45 <has_text text="4240"/>
|
|
46 </assert_contents>
|
|
47 </output>
|
|
48
|
|
49 </test>
|
|
50 </tests>
|
|
51
|
|
52
|
|
53
|
|
54
|
0
|
55
|
|
56 <help><![CDATA[
|
|
57
|
1
|
58 .. class:: warningmark
|
0
|
59
|
1
|
60 **TIP:** If your data is not TAB delimited, use *Convert format data Tools->Convert*
|
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
|
|
98 ]]>
|
|
99 </help>
|
|
100
|
|
101
|
|
102 <citations>
|
1
|
103
|
0
|
104 </citations>
|
|
105
|
|
106 </tool>
|