4
|
1 <tool id="create_ribosome_profiles" name="Create Ribosome Profiles" version="1.1">
|
8
|
2 <description>Produce a Sorted BED File of A-Site profiles of RPFs.</description>
|
0
|
3 <requirements>
|
4
|
4 <requirement type="package" version="1.79">biopython</requirement>
|
0
|
5 <requirement type="package" version="0.19.0">pysam</requirement>
|
|
6 </requirements>
|
4
|
7 <command>python $__tool_directory__/bam_to_ribosome_profile.py ${input1} ${input2} $refGenomeSource.genomeSource
|
|
8 #if $refGenomeSource.genomeSource == "builtin":
|
|
9 none ${refGenomeSource.input1_builtin.fields.path} ${input4} ${output1}
|
|
10 #else:
|
|
11 ${refGenomeSource.input1_file} none ${input4} ${output1}
|
|
12 #end if
|
|
13 </command>
|
0
|
14 <inputs>
|
6
|
15 <param name="input1" type="data" format="bam" label="BAM file to process"/>
|
|
16 <param name="input2" type="integer" value="15" label="Offset to use" help="Use 15 for elongating ribosomes, 12 for initiating and 0 form RNA-seq reads"/>
|
5
|
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>
|
4
|
21 </param>
|
5
|
22 <when value="builtin">
|
|
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">
|
|
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">
|
|
31 <param name="input1_file" type="data" format="fasta" label="FASTA File" />
|
|
32 </when>
|
|
33 </conditional>
|
0
|
34 <param name="input4" type="select" label="Approach" help ="Use Offset for RNase and Weight for MNase">
|
|
35 <option value="offset" selected="true">Use offset approach</option>
|
|
36 <option value="weight">Use weight centered approach</option>
|
|
37 </param>
|
|
38 </inputs>
|
|
39 <outputs>
|
2
|
40 <data name="output1" format="bed"/>
|
0
|
41 </outputs>
|
|
42 <tests>
|
|
43 <test>
|
|
44 <param name="input1" value="test.bam.sorted"/>
|
|
45 <param name="input2" value="15"/>
|
|
46 <param name="input3" value="sacCer3_transcripts.fasta"/>
|
|
47 <param name="input4" value="offset"/>
|
2
|
48 <output name="output1" file="test.bam.sorted.bed.sorted " ftype="bed" lines_diff="4" />
|
0
|
49 </test>
|
|
50 </tests>
|
|
51 <help>
|
|
52 **What it does**
|
|
53
|
|
54 Produce a sorted bed file from a sorted BAM file with the option of introducing an offset to the A-Site of a ribosome protected fragment.
|
|
55
|
|
56 </help>
|
|
57 <citations/>
|
|
58 </tool>
|