Mercurial > repos > iuc > beacon2_import
annotate import.xml @ 1:d2646a23f6b2 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit 23f6d9e5e91c43d5ab68e604205e06785635f42f
author | iuc |
---|---|
date | Mon, 19 Aug 2024 10:50:22 +0000 |
parents | 0f85ad162439 |
children |
rev | line source |
---|---|
0
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
1 <tool id="beacon2_import" name="Beacon2 Import" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
2 <description>Import JSON formatted datasets to beacon database</description> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
3 <macros> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
5 </macros> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
6 <expand macro="creators"/> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
7 <expand macro="requirements"/> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
8 <command detect_errors="exit_code"><![CDATA[ |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
9 ln -s '$input_json_file' ./input.json && |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
10 beacon2-import |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
11 --input_json_file ./input.json |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
12 --db-host $db_host |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
13 --db-port $db_port |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
14 --database '$database' |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
15 --collection '$collection' |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
16 --advance-connection |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
17 --db-auth-config '$credentials' |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
18 $advanced_settings.clearAll |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
19 #if $advanced_settings.clearColl: |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
20 $advanced_settings.clearColl |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
21 --removeCollection $advanced_settings.removeCollection |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
22 #end if |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
23 > logs.txt |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
24 ]]></command> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
25 <expand macro="configfile"/> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
26 <inputs> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
27 <expand macro="Connection_to_MongoDB" /> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
28 <expand macro="Database_Configuration" /> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
29 <param argument="--input_json_file" type="data" format="json" label="INPUT JSON FILE" help="Input the local path to the JSON file or its name on your Galaxy History to import to beacon" /> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
30 <section name="advanced_settings" title="Advanced settings" expanded="false"> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
31 <param argument="--clearAll" type="boolean" checked="false" truevalue="--clearAll" falsevalue="" label="CLEAR ALL COLLECTIONS" help="Delete all data before the new import" /> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
32 <param argument="--clearColl" type="boolean" checked="false" truevalue="--clearColl" falsevalue="" label="CLEAR SPECIFIC COLLECTION" help="Delete specific collection before the new import" /> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
33 <param argument="--removeCollection" optional="true" type="text" label="REMOVED COLLECTION NAME" value="" help="Define the collection name for deletion" /> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
34 </section> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
35 </inputs> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
36 <outputs> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
37 <data name="out_logs" format="txt" label="${tool.name} on ${on_string}: Log file" from_work_dir="logs.txt" /> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
38 </outputs> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
39 <tests> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
40 <test expect_num_outputs="1"> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
41 <param name="input_json_file" ftype="json" value="HG00096.json" /> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
42 <param name="db_host" value="20.108.51.167" /> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
43 <param name="database" value="beacon" /> |
1
d2646a23f6b2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit 23f6d9e5e91c43d5ab68e604205e06785635f42f
iuc
parents:
0
diff
changeset
|
44 <param name="collection" value="test" /> |
0
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
45 <output name="out_logs"> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
46 <assert_contents><has_text_matching expression="inserted"/></assert_contents> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
47 </output> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
48 </test> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
49 </tests> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
50 <help><![CDATA[ |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
51 Import JSON formatted datasets to Beacon MongoDB |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
52 ]]></help> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
53 <expand macro="citations" /> |
0f85ad162439
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
iuc
parents:
diff
changeset
|
54 </tool> |