Mercurial > repos > iuc > data_manager_mash_sketch_builder
comparison data_manager/mash_sketch_builder.xml @ 0:2af9137ba067 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
author | iuc |
---|---|
date | Wed, 26 Feb 2020 17:06:21 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:2af9137ba067 |
---|---|
1 <?xml version="1.0"?> | |
2 <tool id="mash_sketch_builder" name="Mash Sketch" tool_type="manage_data" version="@TOOL_VERSION@+galaxy0" profile="18.09"> | |
3 <description>builder</description> | |
4 <requirements> | |
5 <requirement type="package" version="@TOOL_VERSION@">mash</requirement> | |
6 <requirement type="package" version="3.7">python</requirement> | |
7 </requirements> | |
8 <macros> | |
9 <token name="@TOOL_VERSION@">2.1</token> | |
10 </macros> | |
11 <version_command>mash --version</version_command> | |
12 <command detect_errors="exit_code"> | |
13 <![CDATA[ | |
14 python '$__tool_directory__/mash_sketch_builder.py' | |
15 '${out_file}' | |
16 --threads \${GALAXY_SLOTS:-1} | |
17 #if str( $input_sequence_source.input_sequence_source_selector ) == "tool_data_table": | |
18 --fasta '${input_sequence_source.input_sequence.fields.path}' | |
19 #elif str( $input_sequence_source.input_sequence_source_selector ) == 'history': | |
20 --fasta '${input_sequence_source.input_sequence}' | |
21 #end if | |
22 --sketch-name '${sketch_name}' | |
23 --sketch-size '${sketch_size}' | |
24 --kmer-size '${kmer_size}' | |
25 --probability-threshold '${probability_threshold}' | |
26 ${individual_sequences} | |
27 ]]> | |
28 </command> | |
29 <inputs> | |
30 <conditional name="input_sequence_source"> | |
31 <param name="input_sequence_source_selector" type="select" | |
32 label="Select a sequence from your history or use one from a tool data table?"> | |
33 <option value="tool_data_table">Sequence from tool data table</option> | |
34 <option selected="True" value="history">Sequence from history</option> | |
35 </param> | |
36 <when value="tool_data_table"> | |
37 <param name="input_sequence" type="select" label="Source FASTA Sequence"> | |
38 <options from_data_table="all_fasta"/> | |
39 </param> | |
40 </when> | |
41 <when value="history"> | |
42 <param name="input_sequence" type="data" format="fasta" label="Input sequence" help=""/> | |
43 </when> | |
44 </conditional> | |
45 <param type="text" name="sketch_name" label="Sketch name" help="Human-readable description of the sketch"/> | |
46 <param type="integer" name="sketch_size" value="1000" min="10" max="1000000" label="Sketch size" help="Each sketch will have at most this many non-redundant min-hashes."/> | |
47 <param type="integer" name="kmer_size" value="21" min="1" max="32" label="K-mer size" help="Hashes will be based on strings of this many nucleotides."/> | |
48 <param type="float" name="probability_threshold" value="0.01" min="0." max="1." label="Probability threshold for warning about low k-mer size." /> | |
49 <param type="boolean" name="individual_sequences" truevalue="--individual-sequences" falsevalue="" label="Sketch individual sequences" help="e.g. for multi-fastas of single-chromosome genomes or pair-wise gene comparisons."/> | |
50 </inputs> | |
51 <outputs> | |
52 <data name="out_file" format="data_manager_json" /> | |
53 </outputs> | |
54 <tests> | |
55 <test> | |
56 <param name="input_sequence_source_selector" value="history"/> | |
57 <param name="input_sequence" value="test_assembly.fasta"/> | |
58 <param name="sketch_name" value="Test Sketch" /> | |
59 <output name="out_file" value="mash_sketch_data_manager.json" compare="sim_size" /> | |
60 </test> | |
61 </tests> | |
62 <help><![CDATA[ | |
63 | |
64 **What it does** | |
65 | |
66 Create a sketch file, which is a reduced representation of a sequence or set | |
67 of sequences (based on min-hashes) that can be used for fast distance | |
68 estimations. For output, one sketch file will be generated, but it can have | |
69 multiple sketches within it, divided by sequences or files. | |
70 ]]></help> | |
71 <citations> | |
72 <citation type="doi">10.1186/s13059-016-0997-x</citation> | |
73 </citations> | |
74 </tool> |