Mercurial > repos > nathandunn > monarchinitiative
annotate monarch-genes-for-diseases.xml @ 0:850bb90bd667 draft
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
author | nathandunn |
---|---|
date | Sun, 26 Jun 2016 16:00:28 -0400 |
parents | |
children | 7ae426ca9054 |
rev | line source |
---|---|
0
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
1 <tool id="monarch-genes-for-diseases" name="Pull Genes from Diseases" version="0.1.0"> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
2 <requirements/> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
3 <stdio> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
4 <exit_code range="1:" /> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
5 </stdio> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
6 <command><![CDATA[ |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
7 #set conditional = "%20" + str($conditional1) + "%20" |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
8 #set prefix = "object_closure:%22" |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
9 #set suffix = "%22" |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
10 #set inputString = "" |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
11 #for inputFile in $input1 |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
12 #set inputs = open(str($inputFile),'r').read().split(",") |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
13 #for input in $inputs |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
14 #if $inputString != "" |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
15 #set inputString = $inputString + $conditional |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
16 #end if |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
17 #set inputString = $inputString + $prefix + str($input).strip(' \t\n\r') + $suffix |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
18 #end for |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
19 #end for |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
20 |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
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=subject,subject_label,subject_taxon,subject_taxon_label,relation,relation_label,object,object_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=subject_category:%22gene%22&fq=object_category:%22disease%22&facet.field=subject_taxon_label&q=*:*' | tail -n +2 > $output1 |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
22 ]]></command> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
23 <inputs> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
24 <param name="input1" type="data" format="tabular" multiple="true" label="Disease" /> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
25 <param name="conditional1" type="select" multiple="false" display="radio" label="Conditional"> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
26 <option value="AND">and</option> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
27 <option value="OR">or</option> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
28 </param> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
29 </inputs> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
30 <outputs> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
31 <data name="output1" type="data" format="tabular" /> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
32 </outputs> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
33 <tests> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
34 <test> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
35 <param name="input1" value="disease.tsv"/> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
36 <param name="conditional1" value="OR"/> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
37 <output name="output1" file="genes-for-diseases.tsv"/> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
38 </test> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
39 <test> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
40 <param name="input1" value="2-diseases.tsv"/> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
41 <param name="conditional1" value="OR"/> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
42 <output name="output1" file="genes-for-2-diseases.tsv"/> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
43 </test> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
44 <test> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
45 <param name="input1" value="2-diseases.tsv"/> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
46 <param name="conditional1" value="AND"/> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
47 <output name="output1" file="empty.tsv"/> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
48 </test> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
49 <test> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
50 <param name="input1" value="2-diseases-overlap.tsv"/> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
51 <param name="conditional1" value="AND"/> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
52 <output name="output1" file="genes-for-2-diseases-intersection.tsv"/> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
53 </test> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
54 <test> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
55 <param name="input1" value="2-diseases-overlap.tsv"/> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
56 <param name="conditional1" value="OR"/> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
57 <output name="output1" file="genes-for-2-diseases-union.tsv"/> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
58 </test> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
59 </tests> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
60 <help><![CDATA[ |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
61 Pulls data from monarch web services as TSV given a disease. |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
62 subject,subject_label,subject_taxon,subject_taxon_label,relation,relation_label,object,object_label,evidence,evidence_label,source,is_defined_by,qualifier |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
63 ]]></help> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
64 <citations> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
65 <citation type="doi">doi:10.1038/nprot.2015.124</citation> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
66 </citations> |
850bb90bd667
planemo upload commit b529f45bf9fecbac1457a65b6b81e3b95200fced
nathandunn
parents:
diff
changeset
|
67 </tool> |