annotate query.xml @ 0:315246810bfa draft

Uploaded 20180404
author fabio
date Tue, 03 Apr 2018 20:27:39 -0400
parents
children a4abcc1e7459
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
1 <?xml version="1.0"?>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
2 <tool name="BloomTree Manager - Query" id="btman_query" version="1.0.0">
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
3 <description>the Sequence Bloom Tree</description>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
4 <requirements>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
5 <requirement type="package" version="2.7.10">python</requirement>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
6 <requirement type="package" version="2.18.4">requests</requirement>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
7 </requirements>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
8 <command detect_errors="exit_code">
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
9 <![CDATA[
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
10 python '$__tool_directory__/query.py'
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
11
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
12 --search 'rrr'
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
13 --sthreshold ${sthreshold}
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
14 --exact 0
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
15
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
16 #if $conditional_input.inputtype == '0':
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
17 #set file_paths = ','.join( [ str( $f ) for $f in $conditional_input.txtfiles ] )
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
18 #if $file_paths is not 'None':
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
19 --files '${file_paths}'
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
20 #set file_names = ','.join( [ str( $f.name ) for $f in $conditional_input.txtfiles ] )
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
21 --names '${file_names}'
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
22 #end if
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
23 #elif $conditional_input.inputtype == '1':
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
24 --sequences '${conditional_input.sequences}'
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
25 #end if
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
26
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
27 --outputdir 'collection_content'
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
28 --errorfile 'Error Log File'
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
29 ]]>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
30 </command>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
31 <inputs>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
32 <conditional name="conditional_input">
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
33 <param name="inputtype" type="select" label="Input mode" help="Select a mode based on how do you want to specify the input">
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
34 <option value="0" selected="true">By file</option>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
35 <option value="1">By manually inserted text</option>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
36 </param>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
37 <when value="0">
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
38 <param format="tabular" name="txtfiles" type="data" label="Select files" multiple="true" optional="false" help="Select one or more tabular files containing (ID, TRANSCRIPT) couples for each line. The content of these files will be merged and the result will represent a query to the AllSome Sequence Bloom Tree Search Engine that will return a collection containing a file for each ID. The content of these files as result of the tool will be a list of accession numbers." />
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
39 </when>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
40 <when value="1">
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
41 <param name="sequences" type="text" area="True" size="5x25" label="Manually insert sequences" optional="false" help="Insert a list of (ID, TRANSCRIPT) couples in a tab delimited format, one for each line. The content of this text box will represent a query to the AllSome Sequence Bloom Tree Search Engine that will return a collection containing a file for each ID. The content of these files as result of the tool will be a list of accession numbers." />
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
42 </when>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
43 </conditional>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
44 <param name="sthreshold" size="3" type="float" value="0.7" min="0.0" max="1.0" label="Search threshold" help="This threshold controls the specificity. Lower values will produce more hits to the query. Higher values are more stringent and will produce fewer hits." />
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
45 </inputs>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
46 <outputs>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
47 <collection name="output_collect" type="list" label="AllSome Sequence Bloom Tree Search Collection">
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
48 <discover_datasets pattern="(?P&lt;identifier_0&gt;[^_]+)_(?P&lt;ext&gt;[^_]+)" directory="collection_content" ext="auto" />
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
49 </collection>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
50 </outputs>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
51
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
52 <help><![CDATA[
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
53 This Query tool is part of the BloomTree Manager Framework that allow to rapidly identify all publicly available
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
54 sequenced samples which express a transcript of interest.
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
55
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
56 ----
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
57
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
58 The input for this tool is a list of (ID, TRANSCRIPT) couples, one for each line,
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
59 in a tab delimited format::
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
60
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
61 id0 CCAACCAAAGGGAAAACTTTTTTCCGACTTTGGCCTAAAGGGTTTAACGGCCAAGTCAGAAGGGAAAAAGTTGCGCCA
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
62 id1 TTAATGACAGGGCCACATGATGTGAAAAAAAATCAGAAACCGAGTCAACGTGAGAAGATAGTACGTACTACCGCAAAT
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
63 ...
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
64 idn CAATTAATGATAAATATTTTATAAGGTGCGGAAATAAAGTGAGGAATATCTTTTAAATTCAAGTTCAATTCTGAAAGC
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
65
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
66 The ID can contain alphanumeric characters in addition to spaces, dots, dashes, and round and square brackets.
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
67 Any additional character will be trimmed out.
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
68
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
69 The output of the tool is a collection that contains a file for each ID with a list of
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
70 accession numbers representing the samples that express one particular transcript.
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
71
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
72 ----
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
73
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
74 .. class:: infomark
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
75
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
76 **Notes**
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
77
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
78 This Galaxy tool has been developed by Fabio Cumbo.
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
79
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
80 Please visit this GithHub_repository_ for more information about the BloomTree Manager
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
81
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
82 .. _GithHub_repository: https://github.com/fabio-cumbo/bloomtree-manager
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
83 ]]></help>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
84
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
85 <citations>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
86 <citation type="doi">10.1101/090464</citation>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
87 </citations>
315246810bfa Uploaded 20180404
fabio
parents:
diff changeset
88 </tool>