4
|
1 <?xml version="1.0"?>
|
|
2 <tool name="Query" id="sbtas_se_query" version="1.0.0">
|
|
3 <description>the AllSome Sequence Bloom Tree</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2.7.10">python</requirement>
|
|
6 <requirement type="package" version="2.18.4">requests</requirement>
|
|
7 </requirements>
|
|
8 <command detect_errors="exit_code">
|
|
9 <![CDATA[
|
|
10 python '$__tool_directory__/query.py'
|
|
11
|
|
12 --search 'rrr'
|
|
13 --sthreshold ${sthreshold}
|
|
14 --exact 0
|
|
15
|
|
16 #if $conditional_input.inputtype == '0':
|
|
17 #set file_paths = ','.join( [ str( $f ) for $f in $conditional_input.txtfiles ] )
|
|
18 #if $file_paths is not 'None':
|
|
19 --files '${file_paths}'
|
|
20 #set file_names = ','.join( [ str( $f.name ) for $f in $conditional_input.txtfiles ] )
|
|
21 --names '${file_names}'
|
|
22 #end if
|
|
23 #elif $conditional_input.inputtype == '1':
|
|
24 --sequences '${conditional_input.sequences}'
|
|
25 #end if
|
|
26
|
|
27 --outputdir 'collection_content'
|
|
28 ]]>
|
|
29 </command>
|
|
30 <inputs>
|
|
31 <conditional name="conditional_input">
|
|
32 <param name="inputtype" type="select" label="Input mode" help="Select a mode based on how do you want to specify the input">
|
|
33 <option value="0" selected="true">By file</option>
|
|
34 <option value="1">By manually inserted text</option>
|
|
35 </param>
|
|
36 <when value="0">
|
12
|
37 <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." />
|
4
|
38 </when>
|
|
39 <when value="1">
|
12
|
40 <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." />
|
4
|
41 </when>
|
|
42 </conditional>
|
|
43 <param name="sthreshold" size="3" type="float" value="0.5" 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." />
|
|
44 </inputs>
|
|
45 <outputs>
|
|
46 <collection name="output_collect" type="list" label="AllSome Sequence Bloom Tree Search Collection">
|
12
|
47 <discover_datasets pattern="(?P<identifier_0>[^_]+)_(?P<ext>[^_]+)" directory="collection_content" ext="auto" />
|
4
|
48 </collection>
|
|
49 </outputs>
|
|
50
|
|
51 <help><![CDATA[
|
|
52 The AllSome Sequence Bloom Tree Search Engine is a fast querying tool to identify all publicly available
|
|
53 sequenced samples which express a transcript of interest.
|
|
54
|
|
55 ----
|
|
56
|
12
|
57 The input for this tool is a list of (ID, TRANSCRIPT) couples, one for each line,
|
4
|
58 in a tab delimited format::
|
|
59
|
10
|
60 id0 CCAACCAAAGGGAAAACTTTTTTCCGACTTTGGCCTAAAGGGTTTAACGGCCAAGTCAGAAGGGAAAAAGTTGCGCCA
|
|
61 id1 TTAATGACAGGGCCACATGATGTGAAAAAAAATCAGAAACCGAGTCAACGTGAGAAGATAGTACGTACTACCGCAAAT
|
4
|
62 ...
|
10
|
63 idn CAATTAATGATAAATATTTTATAAGGTGCGGAAATAAAGTGAGGAATATCTTTTAAATTCAAGTTCAATTCTGAAAGC
|
|
64
|
|
65 The ID can contain alphanumeric characters in addition to spaces, dots, dashes, and round and square brackets.
|
|
66 Any additional characters will be trimmed out.
|
4
|
67
|
|
68 The output of the tool is a collection that contains a file for each ID with a list of
|
|
69 accession numbers representing the samples that express one particular transcript.
|
|
70
|
|
71 ----
|
|
72
|
|
73 .. class:: infomark
|
|
74
|
|
75 **Notes**
|
|
76
|
|
77 This Galaxy tool has been developed by Fabio Cumbo.
|
|
78
|
|
79 Please visit this GithHub_repository_ for more information about the AllSome Sequence Bloom Tree Search Engine
|
|
80
|
|
81 .. _GithHub_repository: https://github.com/fabio-cumbo/bloomtree-allsome-search-engine
|
|
82 ]]></help>
|
|
83
|
|
84 <citations>
|
|
85 <citation type="doi">10.1101/090464</citation>
|
|
86 </citations>
|
|
87 </tool>
|