Mercurial > repos > gga > genenotebook_genenotebook_build
comparison macros.xml @ 0:22f22c3e81bf draft
planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/genenotebook commit 12282c16658b37858f49944796fd95515ef0fc0b
author | gga |
---|---|
date | Wed, 11 Jan 2023 11:49:13 +0000 |
parents | |
children | f415e44e71de |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:22f22c3e81bf |
---|---|
1 <?xml version="1.0"?> | |
2 <macros> | |
3 <xml name="requirements"> | |
4 <requirements> | |
5 <requirement type="package" version="@TOOL_VERSION@">genenotebook</requirement> | |
6 <yield/> | |
7 </requirements> | |
8 </xml> | |
9 | |
10 <token name="@TOOL_VERSION@">0.3.2</token> | |
11 <token name="@WRAPPER_VERSION@">@TOOL_VERSION@+galaxy0</token> | |
12 | |
13 <xml name="citation"> | |
14 <citations> | |
15 <citation type="doi">10.1093/bioinformatics/btz491</citation> | |
16 </citations> | |
17 </xml> | |
18 | |
19 <token name="@CONNECT_INFO@">-u admin -p admin --port \$GNB_PORT</token> | |
20 | |
21 <!-- | |
22 This runs GeneNoteBook, and a local mongodb server listening only on a unix socket, created in the work dir. | |
23 The bind_ip option is a trick to prevent mongod from opening a TCP socket. | |
24 For some unknwon reason, unixSocketPrefix needs an absolute path | |
25 --> | |
26 <token name="@START_GNB@"><![CDATA[ | |
27 export GNB_PORT=\$(bash '$__tool_directory__/find_free_port.sh'); | |
28 export MONGO_URI=\$(pwd | sed 's|/|%2F|g'); | |
29 #if $existing | |
30 tar -xf '${existing}' mongo_db; | |
31 #else | |
32 mkdir ./mongo_db/; | |
33 #end if | |
34 . '$__tool_directory__/launch_gnb.sh'; | |
35 ]]></token> | |
36 | |
37 <token name="@ZIP_GNB@"><![CDATA[ | |
38 . '$__tool_directory__/kill_gnb.sh'; | |
39 | |
40 ## Zip the mongodb data dir | |
41 tar -cvjf '${gnb_db}' mongo_db > /dev/null; | |
42 | |
43 ## Make sure mongodb and GNB are really really stopped even if anything failed before | |
44 ## We assume the DRM or container exit will kill any remaining process after that, but who knows. | |
45 kill \$GNB_PID &> /dev/null || true ; | |
46 kill \$(<"./mongo.pid") &> /dev/null || true ; | |
47 ]]></token> | |
48 </macros> |