4
|
1 <tool id="methyation_by_region_tool" name="Methylation by Region Converter" version="0.1.1">
|
|
2 <description>: create a bedgrapgh with methylation percentages aggregated by region</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="0.1.16">samtools</requirement>
|
|
5 <requirement type="package" version="0.12.7">bowtie2</requirement>
|
|
6 </requirements>
|
|
7 <command interpreter="perl">
|
|
8
|
|
9 methylation_by_region_converter.pl
|
|
10
|
|
11 -o $output
|
|
12 -l $summary
|
|
13 ## Handle reference file.
|
|
14 #if $refBedSource.bedSource == "history":
|
|
15 $refBedSource.ownFile
|
|
16 #else:
|
|
17 "${refBedSource.index.fields.path}"
|
|
18 #end if
|
|
19 $bedgraph
|
|
20
|
|
21 </command>
|
|
22 <inputs>
|
|
23 <conditional name="refBedSource">
|
|
24 <param name="bedSource" type="select" label="Will you select a bed file from your history or use a built-in one?" help="Built-ins were created using default options">
|
|
25 <option value="indexed">Use a built-in index</option>
|
|
26 <option value="history">Use one from the history</option>
|
|
27 </param>
|
|
28 <when value="indexed">
|
|
29 <param name="index" type="select" label="Select a bed file" help="If bed file is not listed, contact the Galaxy team">
|
|
30 <options from_data_table="bismark_bed_files">
|
|
31 <filter type="sort_by" column="1"/>
|
|
32 <validator type="no_options" message="No files are available for the selected input dataset"/>
|
|
33 </options>
|
|
34 </param>
|
|
35 </when>
|
|
36 <when value="history">
|
|
37 <param name="ownFile" type="data" format="bed" metadata_name="dbkey" label="Select the bed file" />
|
|
38 </when> <!-- history -->
|
|
39 </conditional> <!-- refGenomeSource -->
|
|
40 <param name="bedgraph" type="data" format="bedgraph" label="BedGraph file" />
|
|
41 <param name="sample" type="text" label="Sample Name" />
|
|
42
|
|
43 </inputs>
|
|
44 <outputs>
|
|
45 <data name="output" format="tabular" label="${tool.name} on ${on_string}" />
|
|
46 <data name="summary" format="txt" label="${tool.name} summary" />
|
|
47 </outputs>
|
|
48 <help>
|
|
49 |
|
|
50
|
|
51
|
|
52 **What it does**
|
|
53
|
|
54
|
|
55 Script to take a bed file of target regions and a series of bedgraphs from bismark and create a bedgrapgh with methylation percentages aggregated by region
|
|
56
|
|
57
|
|
58 -----
|
|
59
|
|
60
|
|
61 ::
|
|
62
|
|
63 Usage: methylation_by_region_converter.pl [OPTIONS] bed_file bedGraph
|
|
64
|
|
65
|
|
66 </help>
|
|
67 </tool>
|
|
68
|
|
69
|