5
|
1 <tool id="get_chrom_sizes" name="Get Chromosome Sizes" version="2.2">
|
1
|
2 <description>Chromosome sizes are needed for the creation of ribosome profiles. This tool generates a tab delimited chrom.sizes file from an inputted fasta</description>
|
|
3 <command>
|
9
|
4 python $__tool_directory__/calculating_chrom.sizes.py ${refGenomeSource.genomeSource}
|
|
5 #if $refGenomeSource.genomeSource == "history":
|
|
6 ${refGenomeSource.genomeSource.input1_file}
|
|
7 #else:
|
|
8 ${refGenomeSource.genomeSource.input1_builtin}
|
|
9 ${input2} ${output1}
|
1
|
10 </command>
|
0
|
11 <inputs>
|
4
|
12 <conditional name="refGenomeSource">
|
|
13 <param name="genomeSource" type="select" label="Will you select a reference from your history or use a built-in FASTA?">
|
|
14 <option value="builtin">Use a built-in FASTA</option>
|
|
15 <option value="history">Use one from the history</option>
|
|
16 </param>
|
|
17 <when value="builtin">
|
6
|
18 <param name="input1_builtin" type="select" label="Select a reference" help="if your reference of interest is not listed - contact RiboGalaxy team">
|
4
|
19 <options from_data_table="builtin_fastas">
|
|
20 <filter type="sort_by" column="2" />
|
|
21 <validator type="no_options" message="No built-ins are available" />
|
|
22 </options>
|
|
23 </param>
|
|
24 </when>
|
|
25 <when value="history">
|
6
|
26 <param name="input1_file" type="data" format="fasta" label="FASTA File" />
|
4
|
27 </when>
|
|
28 </conditional>
|
|
29 <param name="input2" type="select" label="Chromosome Column Prefix (eg. chr)">
|
|
30 <option value="chr">'chr' (required for upload to GWIPS-Viz)</option>
|
|
31 <option value="none" selected='true'>None - do not add a prefix</option>
|
|
32 <option value="manual">Specify you own</option>
|
|
33 </param>
|
3
|
34
|
0
|
35 </inputs>
|
|
36 <outputs>
|
|
37 <data name="output1" format="tabular"/>
|
|
38 </outputs>
|
|
39 <tests>
|
|
40 <test>
|
1
|
41 <param name="input1" value="test.fasta" ftype="fasta" />
|
3
|
42 <param name="input2" value="chr"/>
|
0
|
43 <output name="output1" file="test.fasta.sizes" ftype="tabular" lines_diff="4" />
|
|
44 </test>
|
|
45 </tests>
|
|
46 <help>
|
|
47 **What it does**
|
|
48
|
4
|
49 Creates a chromosome sizes file from a fasta file.
|
0
|
50 </help>
|
|
51 <citations/>
|
|
52 </tool>
|