mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-01 15:37:32 +08:00
40 lines
1.4 KiB
XML
40 lines
1.4 KiB
XML
<tool id="interactive_tool_phinch" tool_type="interactive" name="Phinch Visualisation" version="0.1">
|
|
<icon src="phinch.png" />
|
|
<requirements>
|
|
<container type="docker">shiltemann/docker-phinch-galaxy:16.04</container>
|
|
</requirements>
|
|
<entry_points>
|
|
<entry_point name="Phinch Visualisation of $infile.display_name" requires_domain="True">
|
|
<port>80</port>
|
|
</entry_point>
|
|
</entry_points>
|
|
<command><![CDATA[
|
|
## ToDo nginx, proxy.conf etc can be removed from the container
|
|
|
|
#import os
|
|
#set $name = os.path.splitext(str($infile.display_name).replace(' ', '_'))[0]
|
|
## in case someone names the data testdata.
|
|
rm /home/Phinch/data/testdata.biom | true &&
|
|
ln -s '$infile' '/home/Phinch/data/${name}.biom' &&
|
|
cd /home/Phinch/data &&
|
|
sed -i "s/'REPLACE_ME'/'${name}.biom'/g" /home/Phinch/scripts/readFile.js &&
|
|
sed -i "s/http/https/g" /home/Phinch/scripts/readFile.js &&
|
|
## keep it running
|
|
cd /home/Phinch &&
|
|
php -S 0.0.0.0:80 2>&1 > /var/log/phinch.log
|
|
|
|
]]>
|
|
</command>
|
|
<inputs>
|
|
<param name="infile" type="data" format="biom1" label="Biom1 dataset"/>
|
|
</inputs>
|
|
<outputs>
|
|
<data name="outfile" format="txt" />
|
|
</outputs>
|
|
<tests>
|
|
</tests>
|
|
<help>
|
|
Interactive tool for visualising Biom data.
|
|
</help>
|
|
</tool>
|