41
|
1 <tool id="get_chrom_sizes" name="Get Chromosome Sizes" version="2.8.2">
|
26
|
2 <description>Generates a TAB Delimited chrom.sizes File from an Inputted FASTA</description>
|
41
|
3 <requirement type="package" version="1.13">samtools</requirement>
|
|
4
|
1
|
5 <command>
|
33
|
6
|
|
7 #if $refGenomeSource.genomeSource == "builtin":
|
41
|
8 samtools index ${refGenomeSource.input1_builtin.fields.path}
|
|
9 cut -f 1,2 ${refGenomeSource.input1_builtin.fields.path}.fai > $output1
|
33
|
10 #else:
|
41
|
11 samtools index ${refGenomeSource.input1_file}
|
|
12 cut -f 1,2 ${refGenomeSource.input1_file}.fai > $output1
|
29
|
13 #end if
|
|
14
|
1
|
15 </command>
|
0
|
16 <inputs>
|
4
|
17 <conditional name="refGenomeSource">
|
|
18 <param name="genomeSource" type="select" label="Will you select a reference from your history or use a built-in FASTA?">
|
|
19 <option value="builtin">Use a built-in FASTA</option>
|
|
20 <option value="history">Use one from the history</option>
|
|
21 </param>
|
|
22 <when value="builtin">
|
12
|
23 <param name="input1_builtin" type="select" format="fasta" label="Select a reference" help="if your reference of interest is not listed - contact RiboGalaxy team">
|
4
|
24 <options from_data_table="builtin_fastas">
|
|
25 <filter type="sort_by" column="2" />
|
|
26 <validator type="no_options" message="No built-ins are available" />
|
|
27 </options>
|
|
28 </param>
|
|
29 </when>
|
|
30 <when value="history">
|
6
|
31 <param name="input1_file" type="data" format="fasta" label="FASTA File" />
|
4
|
32 </when>
|
|
33 </conditional>
|
39
|
34
|
|
35 <param name="input2" type="text" label="Chromosome Column Prefix (add chr if absent from FASTA file for GWIPS upload)" />
|
3
|
36
|
0
|
37 </inputs>
|
|
38 <outputs>
|
|
39 <data name="output1" format="tabular"/>
|
|
40 </outputs>
|
|
41 <tests>
|
|
42 <test>
|
1
|
43 <param name="input1" value="test.fasta" ftype="fasta" />
|
3
|
44 <param name="input2" value="chr"/>
|
0
|
45 <output name="output1" file="test.fasta.sizes" ftype="tabular" lines_diff="4" />
|
|
46 </test>
|
|
47 </tests>
|
|
48 <help>
|
|
49 **What it does**
|
|
50
|
25
|
51 Creates a chromosome sizes file from a fasta file. This is needed for creating ribosome profiles.
|
|
52
|
|
53 Some commonly used genomes are provided to save on storage.
|
0
|
54 </help>
|
|
55 <citations/>
|
|
56 </tool>
|