comparison bioentityset-overrepresentation.xml @ 3:d40860663861 draft

planemo upload commit 1a35e82b210719d58263c618f9a67801db26d391
author nathandunn
date Sat, 02 Dec 2017 16:41:34 -0500
parents
children 49b46f044d48
comparison
equal deleted inserted replaced
2:88e1bd76b069 3:d40860663861
1 <tool id="monarch-bioentityset-overrepresentation" name="Bioentity Set Get Over Representation" version="0.1.0">
2 <macros>
3 <import>macros.xml</import>
4 </macros>
5 <expand macro="frontmatter" />
6 <command><![CDATA[
7 #*
8 curl --silent -X GET --header 'Accept: application/json' 'https://api-dev.monarchinitiative.org/api/bioentityset/overrepresentation/?object_category=phenotype&subject=NCBIGene%3A6295&subject=NCBIGene%3A1258&subject=NCBIGene%3A3614&subject=NCBIGene%3A26121&subject=NCBIGene%3A7275&subject=NCBIGene%3A55857&subject=NCBIGene%3A79797&subject=NCBIGene%3A10594&subject=NCBIGene%3A64218&subject=NCBIGene%3A7401&ontology=hp&subject_category=gene&taxon=NCBITaxon%3A9606&object_category=phenotype&max_p_value=0.05' > $output
9 *#
10 #set $subject_string = ''
11 #set $subject = $subject.replace(' ', '')
12 #set $subject = $subject.replace(',', ' ')
13 #for $word in $subject.split(' ')
14 #set $subject_string += '&subject='+str($word)
15 #end for
16
17 #set $background_string = ''
18 #set $background = $background.replace(' ', '')
19 #set $background = $background.replace(',', ' ')
20 #for $word in $background.split(' ')
21 #set $background_string += '&background='+str($word)
22 #end for
23
24 curl --silent -X GET --header 'Accept: application/json' 'https://api-dev.monarchinitiative.org/api/bioentityset/overrepresentation/?object_category=$object_category$subject_string&background=$background_string&ontology=$ontology&subject_category=$subject_category&taxon=$taxon&object_category=$object_category&max_p_value=$max_p_value' > $output
25 ]]></command>
26 <inputs>
27 <param name="object_category" type="text" format="txt" multiple="false" label="CATEGORY of entity at link OBJECT (target), e.g. function, phenotype, disease" />
28 <param name="subject" type="text" format="txt" multiple="true" label="Entity ids to be examined, e.g. NCBIGene:6295,NCBIGene:1258 ,NCBIGene:3614 ,NCBIGene:26121 ,NCBIGene:7275 ,NCBIGene:55857 ,NCBIGene:79797 ,NCBIGene:10594 ,NCBIGene:64218 ,NCBIGene:7401"
29 />
30 <param name="background" type="text" format="txt" multiple="true" label="Entity ids in background set, e.g. NCBIGene:84570, NCBIGene:3630; used in over-representation tests" />
31 <param name="ontology" type="text" format="txt" multiple="false" value="hp" label="ontology id. Must be obo id. Examples: go, mp, hp, uberon (optional: will be inferred if left blank)" />
32 <param name="subject_category" type="text" format="txt" multiple="false" label="Other types may be used e.g. disease but statistics may not make sense" value="gene"/>
33 <param name="taxon" type="text" format="txt" multiple="true" label="must be NCBITaxon CURIE. Example: NCBITaxon:9606" />
34 <param name="object_category" type="text" format="txt" multiple="false" label="E.g. phenotype, function" value="phenotype" />
35 <param name="max_p_value" type="text" format="txt" multiple="false" value="0.05" label="Exclude results with p-value greater than this"/>
36 </inputs>
37 <expand macro="outputs" />
38 <tests>
39 <!--emulate: https://api-dev.monarchinitiative.org/api/bioentityset/overrepresentation/
40 ?object_category=phenotype
41 subject=NCBIGene%3A6295
42 subject=NCBIGene%3A1258
43 subject=NCBIGene%3A3614
44 subject=NCBIGene%3A26121
45 subject=NCBIGene%3A7275
46 subject=NCBIGene%3A55857
47 subject=NCBIGene%3A79797
48 subject=NCBIGene%3A10594
49 subject=NCBIGene%3A64218
50 subject=NCBIGene%3A7401
51 ontology=hp
52 subject_category=gene
53 taxon=NCBITaxon%3A9606
54 object_category=phenotype
55 max_p_value=0.05-->
56 <test>
57 <param name="object_category" value="phenotype"/>
58 <param name="subject" value="NCBIGene%3A6295,NCBIGene%3A1258,NCBIGene%3A3614,NCBIGene%3A26121,NCBIGene%3A7275,NCBIGene%3A55857,NCBIGene%3A79797,NCBIGene%3A10594,NCBIGene%3A64218,NCBIGene%3A7401"/>
59 <param name="ontology" value="hp"/>
60 <param name="subject_category" value="gene"/>
61 <param name="taxon" value="NCBITaxon:9606"/>
62 <param name="object_category" value="phenotype"/>
63 <param name="max_p_value" value="0.05"/>
64 <output name="output" file="bioentityset-overrepresentation.json"/>
65 </test>
66 </tests>
67 <expand macro="citations" />
68 </tool>
69