annotate sappDocker/sparql.xml @ 32:7b519ee3ea3b draft

Deleted selected files
author jjkoehorst
date Wed, 29 Jun 2016 01:37:28 -0400
parents 957156367442
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
31
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
1 <tool id="DQuery" name="SAPPARQL" version="1.0.0">
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
2 <description/>
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
3 <command interpreter="docker">java -jar /sparql/target/sparqljava-0.0.1-SNAPSHOT-jar-with-dependencies.jar '-rdf' '$input' '-format' 'TURTLE' '-query' '$query' '-output' '$output'</command>
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
4 <inputs>
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
5 <param format="ttl" label="Genome Database" multiple="True" name="input" type="data"/>
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
6 <param area="True" label="SPARQL query" name="query" type="text" value="YOUR QUERY HERE">
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
7 <sanitizer>
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
8 <valid initial="string.ascii_letters + string.punctuation + string.whitespace + string.digits"/>
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
9 </sanitizer>
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
10 </param>
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
11 <param checked="False" falsevalue="" help="Use this option if you run into memory or performance problems. Each genome will be queried independently of each other and therefor advanced comparison SPARQL queries will not work." label="Treath genomes separately" name="separate" truevalue="-separate" type="boolean"/>
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
12 </inputs>
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
13 <outputs>
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
14 <data format="tsv" label="query.tsv" name="output"/>
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
15 </outputs>
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
16 <help>
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
17 ===============================
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
18 Frequently Asked Queries (FAQs)
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
19 ===============================
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
20
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
21 ----------------------
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
22 Obtain COG information
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
23 ----------------------
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
24
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
25 Retrieving COG information from a single or multiple genomes at the same time. ::
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
26
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
27 PREFIX ssb:&lt;http://csb.wur.nl/genome/&gt;
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
28 SELECT ?genome ?label ?letter ?description
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
29 WHERE {
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
30 ?genome a ssb:Genome .
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
31 ?genome ssb:dnaobject ?dna .
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
32 ?dna ssb:feature ?gene .
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
33 ?gene ssb:protein ?protein .
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
34 ?protein ssb:feature ?feature .
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
35 ?feature a ssb:Blast .
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
36 ?feature ssb:evalue ?evalue .
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
37 ?feature ssb:cog ?cog .
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
38 ?cog ssb:cogid ?id .
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
39 ?id ssb:letter ?letter .
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
40 ?id ssb:description ?description .
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
41 ?id ssb:label ?label .
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
42 }
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
43 LIMIT 25
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
44
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
45 -------------------------------
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
46 Obtain GC content + Genome size
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
47 -------------------------------
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
48
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
49 PREFIX ssb:&lt;http://csb.wur.nl/genome/&gt;
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
50 SELECT ?genome (?GC/?ATGC AS ?GContent) ?ATGC
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
51 WHERE {
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
52 ?genome a ssb:Genome .
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
53 ?genome ssb:dnaobject ?dna .
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
54 ?dna ssb:sequence ?sequence .
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
55 BIND(STRLEN(REPLACE(?sequence,&quot;[AT]&quot;,&quot;&quot;,&quot;i&quot;)) AS ?GC)
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
56 BIND(STRLEN(?sequence) AS ?ATGC)
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
57 }
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
58
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
59 </help>
957156367442 Uploaded
jjkoehorst
parents:
diff changeset
60 </tool>