comparison cohorts.xml @ 0:8fc2c603a61f draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2-import commit f4151aa2d760f931f819f954f465ef66055bf258
author iuc
date Mon, 22 Jul 2024 12:37:13 +0000
parents
children d524bd42b89e
comparison
equal deleted inserted replaced
-1:000000000000 0:8fc2c603a61f
1 <tool id="beacon2_cohorts" name="Beacon2 Cohorts" version="1.0.0" profile="21.05">
2 <description>Query the Cohorts collection in the beacon database</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="creators"/>
7 <expand macro="requirements"/>
8 <command detect_errors="exit_code">
9 <![CDATA[
10 beacon2-search cohorts
11 --db-host '$db_host'
12 --db-port $db_port
13 --database '$database'
14 --collection '$collection'
15 --advance-connection
16 --db-auth-config '$credentials'
17 #if str($advanced_settings.cohortDataTypes)
18 --cohortDataTypes '$advanced_settings.cohortDataTypes'
19 #end if
20 #if str($advanced_settings.cohortDesign)
21 --cohortDesign '$advanced_settings.cohortDesign'
22 #end if
23 #if str($advanced_settings.cohortSize)
24 --cohortSize $advanced_settings.cohortSize
25 #end if
26 #if str($advanced_settings.identification)
27 --identification '$advanced_settings.identification'
28 #end if
29 #if str($advanced_settings.cohortType)
30 --cohortType '$advanced_settings.cohortType'
31 #end if
32 #if str($advanced_settings.genders) and $advanced_settings.genders != ""
33 --genders '$advanced_settings.genders'
34 #end if
35 #if str($advanced_settings.name)
36 --name '$advanced_settings.name'
37 #end if
38 > cohorts_query_findings.json
39 ]]>
40 </command>
41 <expand macro="configfile"/>
42 <inputs>
43 <expand macro="Connection_to_MongoDB"/>
44 <expand macro="Database_Configuration"/>
45 <section name="advanced_settings" title="Advanced settings" expanded="false">
46 <param argument="--cohortDataTypes" optional="true" type="text" label="COHORTDATA TYPES" value="" help="The type of data chorort, e.g. clinical history" />
47 <param argument="--cohortDesign" optional="true" type="text" label="COHORTDESIGN" value="" help="A plan specification comprised of protocols that are executed as part of an investigation, e.g. longitudinal study design" />
48 <param argument="--cohortSize" optional="true" type="integer" label="COHORT SIZE" value="" help="Count of unique Individuals in cohort" />
49 <param argument="--cohortType" optional="true" type="text" label="COHORT TYPE" value="" help="Cohort type by its definition, e.g. study-defined" />
50 <param argument="--identification" optional="true" type="text" label="ID" value="" help="Cohort identifier, e.g. cohort0001" />
51 <param argument="--genders" optional="true" type="select" label="GENDERS" help="">
52 <option value="male">male</option>
53 <option value="female">female</option>
54 <option value="" selected="True">non specific</option>
55 </param>
56 <param argument="--name" optional="true" type="text" label="NAME" value="" help="Name of the cohort" />
57 </section>
58 </inputs>
59 <outputs>
60 <data name="out_cohorts_query" format="json" label="${tool.name} on ${on_string}: Cohorts Query" from_work_dir="cohorts_query_findings.json" />
61 </outputs>
62 <tests>
63 <test expect_num_outputs="1">
64 <param name="database" value="beacon" />
65 <param name="collection" value="cohorts" />
66 <param name="db_host" value="20.108.51.167" />
67 <param name="cohortType" value="study-defined" />
68 <param name="cohortDataTypes" value="demographic data" />
69 <param name="identification" value="refvar-668fcc22387cab4642e5f1a4" />
70 <output name="out_cohorts_query">
71 <assert_contents>
72 <has_text_matching expression="_id"/>
73 </assert_contents>
74 </output>
75 </test>
76 </tests>
77 <help><![CDATA[
78 Beacon2 Cohorts queries the cohorts collection in the Beacon database to study the variants or individuals in a populations or groups that share something in common.
79 ]]></help>
80 <expand macro="citations" />
81 </tool>