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}
|
10
|
15 --sort ${sortcontrol}
|
0
|
16 --exact 0
|
|
17
|
|
18 #if $conditional_input.inputtype == '0':
|
|
19 #set file_paths = ','.join( [ str( $f ) for $f in $conditional_input.txtfiles ] )
|
|
20 #if $file_paths is not 'None':
|
|
21 --files '${file_paths}'
|
|
22 #set file_names = ','.join( [ str( $f.name ) for $f in $conditional_input.txtfiles ] )
|
|
23 --names '${file_names}'
|
|
24 #end if
|
|
25 #elif $conditional_input.inputtype == '1':
|
|
26 --sequences '${conditional_input.sequences}'
|
|
27 #end if
|
|
28
|
|
29 --outputdir 'collection_content'
|
|
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." />
|
10
|
46 <param name="sortcontrol" type="boolean" checked="true" truevalue="1" falsevalue="0" label="Sort the result by the number of hits per transcript." />
|
0
|
47 </inputs>
|
|
48 <outputs>
|
2
|
49 <collection name="output_collect" type="list" label="BloomTree Manager - Query result collection">
|
0
|
50 <discover_datasets pattern="(?P<identifier_0>[^_]+)_(?P<ext>[^_]+)" directory="collection_content" ext="auto" />
|
|
51 </collection>
|
|
52 </outputs>
|
|
53
|
|
54 <help><![CDATA[
|
|
55 This Query tool is part of the BloomTree Manager Framework that allow to rapidly identify all publicly available
|
|
56 sequenced samples which express a transcript of interest.
|
|
57
|
|
58 ----
|
|
59
|
|
60 The input for this tool is a list of (ID, TRANSCRIPT) couples, one for each line,
|
|
61 in a tab delimited format::
|
|
62
|
|
63 id0 CCAACCAAAGGGAAAACTTTTTTCCGACTTTGGCCTAAAGGGTTTAACGGCCAAGTCAGAAGGGAAAAAGTTGCGCCA
|
|
64 id1 TTAATGACAGGGCCACATGATGTGAAAAAAAATCAGAAACCGAGTCAACGTGAGAAGATAGTACGTACTACCGCAAAT
|
|
65 ...
|
|
66 idn CAATTAATGATAAATATTTTATAAGGTGCGGAAATAAAGTGAGGAATATCTTTTAAATTCAAGTTCAATTCTGAAAGC
|
|
67
|
|
68 The ID can contain alphanumeric characters in addition to spaces, dots, dashes, and round and square brackets.
|
|
69 Any additional character will be trimmed out.
|
|
70
|
|
71 The output of the tool is a collection that contains a file for each ID with a list of
|
|
72 accession numbers representing the samples that express one particular transcript.
|
|
73
|
|
74 ----
|
|
75
|
|
76 .. class:: infomark
|
|
77
|
|
78 **Notes**
|
|
79
|
|
80 This Galaxy tool has been developed by Fabio Cumbo.
|
|
81
|
|
82 Please visit this GithHub_repository_ for more information about the BloomTree Manager
|
|
83
|
|
84 .. _GithHub_repository: https://github.com/fabio-cumbo/bloomtree-manager
|
|
85 ]]></help>
|
|
86
|
|
87 <citations>
|
|
88 <citation type="doi">10.1101/090464</citation>
|
|
89 </citations>
|
|
90 </tool>
|