Mercurial > repos > nathandunn > monarchinitiative
annotate monarch-pathways-for-genes.xml @ 4:4be31c7908af draft
planemo upload commit 9608f0096fcafb3202cde18a424264ad66130a21
author | nathandunn |
---|---|
date | Mon, 27 Jun 2016 09:48:53 -0400 |
parents | 52d9016a156f |
children |
rev | line source |
---|---|
3
52d9016a156f
planemo upload commit dd3ea82b498d011701d1bfbc9fd4c9a93afc3826
nathandunn
parents:
2
diff
changeset
|
1 <tool id="monarch-pathways-for-genes" name="Pull Pathways from Genes" version="0.1.0"> |
2
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
2 <requirements/> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
3 <stdio> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
4 <exit_code range="1:" /> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
5 </stdio> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
6 <command><![CDATA[ |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
7 #set conditional = "%20" + str($conditional1) + "%20" |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
8 #set prefix = "subject_closure:%22" |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
9 #set suffix = "%22" |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
10 #set inputString = "" |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
11 #for inputFile in $input1 |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
12 #set inputs = open(str($inputFile),'r').read().split(",") |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
13 #for input in $inputs |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
14 #if $inputString != "" |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
15 #set inputString = $inputString + $conditional |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
16 #end if |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
17 #set inputString = $inputString + $prefix + str($input).strip(' \t\n\r') + $suffix |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
18 #end for |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
19 #end for |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
20 |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
21 curl -s 'https://solr.monarchinitiative.org/solr/golr/select?defType=edismax&qt=standard&indent=on&wt=csv&rows=100000&start=0&fl=object,object_label,relation,relation_label,subject,subject_label,evidence,evidence_label,source,is_defined_by,qualifier&facet=true&facet.mincount=1&facet.sort=count&json.nl=arrarr&facet.limit=25&facet.method=enum&csv.encapsulator=&csv.separator=%09&csv.header=true&csv.mv.separator=%7C&fq=($inputString)&fq=object_category:%22pathway%22&facet.field=subject_taxon_closure_label&facet.field=object_taxon_closure_label&q=*:*' | tail -n +2 > $output1 |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
22 |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
23 |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
24 ]]></command> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
25 <inputs> |
3
52d9016a156f
planemo upload commit dd3ea82b498d011701d1bfbc9fd4c9a93afc3826
nathandunn
parents:
2
diff
changeset
|
26 <param name="input1" type="data" format="tabular" multiple="true" label="Genes" /> |
2
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
27 <param name="conditional1" type="select" multiple="false" display="radio" label="Conditional"> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
28 <option value="AND">and</option> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
29 <option value="OR">or</option> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
30 </param> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
31 </inputs> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
32 <outputs> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
33 <data name="output1" type="data" format="tabular" /> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
34 </outputs> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
35 <tests> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
36 <test> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
37 <param name="input1" value="pathway-gene.tsv"/> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
38 <param name="conditional1" value="OR"/> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
39 <output name="output1" file="pathways-for-gene.tsv"/> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
40 </test> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
41 <test> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
42 <param name="input1" value="pathway-genes.tsv"/> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
43 <param name="conditional1" value="AND"/> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
44 <output name="output1" file="pathways-for-genes-intersection.tsv"/> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
45 </test> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
46 <test> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
47 <param name="input1" value="pathway-genes.tsv"/> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
48 <param name="conditional1" value="OR"/> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
49 <output name="output1" file="pathways-for-genes-union.tsv"/> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
50 </test> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
51 </tests> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
52 <help><![CDATA[ |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
53 Pulls data from monarch web services as TSV given a disease. |
3
52d9016a156f
planemo upload commit dd3ea82b498d011701d1bfbc9fd4c9a93afc3826
nathandunn
parents:
2
diff
changeset
|
54 object,object_label,relation,relation_label,subject,subject_label,evidence,evidence_label,source,is_defined_by,qualifier |
2
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
55 ]]></help> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
56 <citations> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
57 <citation type="doi">doi:10.5281/zenodo.56412</citation> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
58 </citations> |
3107c58d5c85
planemo upload commit 24de1c1405f1f79859f764da60ba068f2dc88cc6
nathandunn
parents:
diff
changeset
|
59 </tool> |