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