annotate PileOMeth.xml @ 1:d1b66015effd draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
author bgruening
date Wed, 21 Sep 2016 13:37:19 -0400
parents 65575e70af7e
children cda51d96a9bc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
1 <tool id="pileometh" name="PileOMeth" version="0.1.13">
0
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
2 <description>A tool for processing bisulfite sequencing alignments</description>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
3 <requirements>
1
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
4 <requirement type="package" version="0.1.13">pileometh</requirement>
0
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
5 </requirements>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
6 <stdio>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
7 <!-- Anything other than zero is an error -->
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
8 <exit_code range="1:" />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
9 <exit_code range=":-1" />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
10 <!-- In case the return code has not been set propery check stderr too -->
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
11 <regex match="Error:" />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
12 <regex match="Exception:" />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
13 </stdio>
1
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
14 <version_command><![CDATA[PileOMeth --version]]></version_command>
0
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
15 <command><![CDATA[
1
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
16 #if $reference_source.reference_source_selector == "cached":
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
17 ln -s $reference_source.ref_file.fields.path reference.fasta &&
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
18 #else:
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
19 ln -s $reference_source.ref_file reference.fasta &&
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
20 #end if
0
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
21
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
22 PileOMeth
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
23 $main_task.task
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
24
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
25 #if $main_task.task == "extract":
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
26 -o output
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
27 $main_task.mergeContext
1
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
28 #if str($main_task.OT).strip() != "":
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
29 --OT $main_task.OT
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
30 #end if
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
31 #if str($main_task.OB).strip() != "":
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
32 --OB $main_task.OB
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
33 #end if
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
34 #if str($main_task.CTOT).strip() != "":
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
35 --CTOT $main_task.CTOT
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
36 #end if
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
37 #if str($main_task.CTOB).strip() != "":
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
38 --CTOB $main_task.CTOB
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
39 #end if
0
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
40 #end if
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
41
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
42 #if $advanced_options.options=="yes":
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
43 #if $advanced_options.mbias_regionString:
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
44 -r $advanced_options.mbias_regionString
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
45 #end if
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
46 $advanced_options.keepDupes
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
47 $advanced_options.keepSingleton
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
48 -q $advanced_options.min_mapq
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
49 -p $advanced_options.min_phred
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
50 -D $advanced_options.max_pbdepth
1
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
51 #if $main_task.task == "extract":
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
52 -d $advanced_options.min_pbdepth
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
53 #end if
0
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
54 $advanced_options.CHG
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
55 $advanced_options.CHH
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
56 #end if
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
57
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
58 reference.fasta
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
59
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
60 $input_sortedAlignBAM
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
61
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
62 #if $main_task.task == "mbias":
1
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
63 out_mbias &&
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
64 touch out_mbias_OT.svg &&
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
65 touch out_mbias_OB.svg &&
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
66 touch out_mbias_CTOT.svg &&
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
67 touch out_mbias_CTOB.svg
0
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
68 #end if
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
69 ]]></command>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
70 <inputs>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
71 <conditional name="reference_source">
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
72 <param name="reference_source_selector" type="select" label="Load reference genome from">
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
73 <option value="cached">Local cache</option>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
74 <option value="history">History</option>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
75 </param>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
76 <when value="cached">
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
77 <param name="ref_file" type="select" label="Using reference genome" help="Reference sequence">
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
78 <options from_data_table="all_fasta"/>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
79 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
80 </param>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
81 </when>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
82 <when value="history">
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
83 <param name="ref_file" type="data" format="fasta" label="Use the folloing dataset as the reference sequence" help="REFERENCE_SEQUENCE; You can upload a FASTA sequence to the history and use it as reference" />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
84 </when>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
85 </conditional>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
86
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
87 <param name="input_sortedAlignBAM" multiple="False" type="data" format="bam" label="sorted_alignments.bam"/>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
88 <conditional name="main_task">
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
89 <param name="task" type="select" label="What do you want to do?" >
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
90 <option value="extract">Extract methylation metrics from an alignment file in BAM/CRAM format</option>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
91 <option value="mbias">Determine the position-dependent methylation bias in a dataset, producing diagnostic SVG images</option>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
92 </param>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
93 <when value="extract">
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
94 <param name="mergeContext" type="boolean" checked="false" truevalue="--mergeContext" falsevalue=""
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
95 label="Merge per-Cytosine metrics from CpG and CHG contexts into per-CPG or per-CHG metrics" help="(--mergeContext)" />
1
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
96 <param name="OT" type="text" value="" label="Original top strand bounds (comma-separated, no spaces)"
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
97 help="Inclusion bounds for methylation calls from reads/pairs
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
98 origination from the original top strand. Suggested values can
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
99 be obtained from the MBias program. Each integer represents a
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
100 1-based position on a read. For example --OT A,B,C,D
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
101 translates to, 'Include calls at positions from A through B
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
102 on read #1 and C through D on read #2'. If a 0 is used a any
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
103 position then that is translated to mean start/end of the
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
104 alignment, as appropriate. For example, --OT 5,0,0,0 would
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
105 include all but the first 4 bases on read #1. Users are
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
106 strongly advised to consult a methylation bias plot, for
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
107 example by using the MBias program." />
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
108 <param name="OB" type="text" value="" label="Original bottom strand bounds (comma-separated, no spaces)" />
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
109 <param name="CTOT" type="text" value="" label="Complementary to the original bottom strand bounds (comma-separated, no spaces)" />
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
110 <param name="CTOB" type="text" value="" label="Complementary to the original bottom strand bounds (comma-separated, no spaces)" />
0
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
111 </when>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
112 <when value="mbias"/>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
113 </conditional>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
114 <conditional name="advanced_options">
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
115 <param name="options" type="select" label="Advanced options">
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
116 <option value="">Hide advanced options</option>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
117 <option value="yes">Display advanced options</option>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
118 </param>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
119 <when value="yes">
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
120 <param name="mbias_regionString" type="text" value="" label="Region string in which to extract methylation"/>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
121 <param name="keepDupes" type="boolean" checked="false" truevalue="--keepDupes" falsevalue=""
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
122 label="By default, any alignment marked as a duplicate is ignored. This option causes them to be incorporated" />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
123 <param name="keepSingleton" type="boolean" checked="false" truevalue="--keepSingleton" falsevalue=""
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
124 label="By default, if only one read in a pair aligns (a singleton) then it's ignored." />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
125 <param name="min_mapq" type="integer" value="10" label="Minimum MAPQ threshold to include an alignment (default 10)"/>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
126 <param name="min_phred" type="integer" value="5" label="Minimum Phred threshold to include a base (default 5). This must be >0."/>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
127 <param name="max_pbdepth" type="integer" value="2000" label="Maximum per-base depth (default 2000)"/>
1
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
128 <param name="min_pbdepth" type="integer" value="1" min="1" label="Minimum per-base depth"
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
129 help="Minimum per-base dpeth for reporting output. If you use --mergeContext (above), then this applies to the merged CpG/CHG (default 1). (-d)" />
0
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
130
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
131 <param name="CHG" type="boolean" checked="false" truevalue="--CHG" falsevalue=""
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
132 label="Additional output file with CHG methylation metrics" />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
133 <param name="CHH" type="boolean" checked="false" truevalue="--CHH" falsevalue=""
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
134 label="Additional output file with CHH methylation metrics" />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
135 </when>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
136 <when value=""/>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
137 </conditional>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
138 </inputs>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
139 <outputs>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
140 <data name="outFileExtractCpG" format="bedgraph" from_work_dir="output_CpG.bedGraph"
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
141 label="${tool.name} on ${on_string}">
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
142 <filter>main_task['task'] == "extract"</filter>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
143 </data>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
144 <data name="outFileExtractCHG" format="bedgraph" from_work_dir="output_CHG.bedGraph"
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
145 label="${tool.name} on ${on_string} (CHG)">
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
146 <filter>main_task['task'] == 'extract'</filter>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
147 <filter>advanced_options['options'] == "yes"</filter>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
148 <filter>advanced_options['CHG'] == "--CHG"</filter>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
149 </data>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
150 <data name="outFileExtractCHH" format="bedgraph" from_work_dir="output_CHH.bedGraph"
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
151 label="${tool.name} on ${on_string} (CHH)">
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
152 <filter>main_task['task'] == 'extract'</filter>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
153 <filter>advanced_options['options'] == "yes"</filter>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
154 <filter>advanced_options['CHH'] == "--CHH" </filter>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
155 </data>
1
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
156 <data name="outFileMbiasCpGOT" format="svg" from_work_dir="out_mbias_OT.svg"
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
157 label="${tool.name} on ${on_string} (methylation bias, original top strand)">
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
158 <filter>main_task['task'] == 'mbias'</filter>
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
159 </data>
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
160 <data name="outFileMbiasCpGOB" format="svg" from_work_dir="out_mbias_OB.svg"
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
161 label="${tool.name} on ${on_string} (methylation bias, original bottom strand)">
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
162 <filter>main_task['task'] == 'mbias'</filter>
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
163 </data>
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
164 <data name="outFileMbiasCpGCTOT" format="svg" from_work_dir="out_mbias_CTOT.svg"
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
165 label="${tool.name} on ${on_string} (methylation bias, complementary to the original top strand)">
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
166 <filter>main_task['task'] == 'mbias'</filter>
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
167 </data>
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
168 <data name="outFileMbiasCpGCTOB" format="svg" from_work_dir="out_mbias_CTOB.svg"
d1b66015effd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit fc3727b1b39cd5654a523d03e0df2b9ac87ddcda
bgruening
parents: 0
diff changeset
169 label="${tool.name} on ${on_string} (methylation bias, complementary to the original bottom strand)">
0
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
170 <filter>main_task['task'] == 'mbias'</filter>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
171 </data>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
172 </outputs>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
173 <tests>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
174 <test>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
175 <param name="task" value="extract" />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
176 <param name="min_mapq" value="2" />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
177 <param name="reference_source_selector" value="history" />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
178 <param name="ref_file" value="cg100.fa" ftype="fasta" />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
179 <param name="input_sortedAlignBAM" value="cg_aln.bam" ftype="bam"/>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
180 <param name="mergeContext" value="false"/>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
181 <param name="options" value="yes"/>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
182 <output name="outFileExtractCpG" file="test_1.bedGraph" ftype="bedgraph" compare="diff"/>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
183 </test>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
184 <test>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
185 <param name="task" value="mbias" />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
186 <param name="min_mapq" value="2" />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
187 <param name="options" value="yes"/>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
188 <param name="reference_source_selector" value="history" />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
189 <param name="ref_file" value="cg100.fa" ftype="fasta" />
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
190 <param name="input_sortedAlignBAM" value="cg_aln.bam" ftype="bam"/>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
191 <output name="outFileMbiasCpG" file="test_2_output.svg" ftype="svg" compare="diff"/>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
192 </test>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
193 </tests>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
194 <help><![CDATA[
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
195 **What it does**
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
196
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
197 PileOMeth (using a PILEup to extract METHylation metrics) will process a coordinate-sorted and indexed BAM or CRAM file containing some form of BS-seq alignments and extract per-base methylation metrics from them. PileOMeth requires an indexed fasta file containing the reference genome as well.
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
198
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
199 By default, PileOMeth will only calculate metrics for Cytosines in a CpG context, but metrics for those in CHG and CHH contexts are supported as well.
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
200
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
201 **Methylation context**
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
202
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
203 PileOMeth groups all Cytosines into one of three sequence contexts: CpG, CHG, and CHH. Here, H is the IUPAC ambiguity code for any nucleotide other than G. If an N is encountered in the reference sequence, then the context will be assigned to CHG or CHH, as appropriate (e.g., CNG would be categorized as in a CHG context and CNC as in a CHH context). If a Cytosine is close enough to the end of a chromosome/contig such that its context can't be inferred, then it is categorized as CHH (e.g., a Cytosine as the last base of a chromosome is considered as being in a CHH context).
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
204
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
205
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
206 **Output information**
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
207
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
208 If no methylation can be found, the output will be empty.
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
209
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
210 Otherwise a variant of bedGraph that's similar to the "coverage" file is produced. In short, each line consists of 6 tab separated columns:
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
211
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
212 1. The chromosome/contig/scaffold name
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
213 2. The start coordinate
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
214 3. The end coordinate
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
215 4. The methylation percentage rounded to an integer
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
216 5. The number of alignments/pairs reporting methylated bases
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
217 6. The number of alignments/pairs reporting unmethylated bases
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
218
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
219 All coordinates are 0-based half open, which conforms to the bedGraph definition. When paired-end reads are aligned, it can often occur that their alignments overlap. In such cases, PileOMeth will not count both reads of the pair in its output, as doing so would lead to incorrect downstream statistical results.
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
220
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
221 An example of the output is below::
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
222
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
223 #track type="bedGraph" description="SRR1182519.sorted CpG methylation levels"
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
224 #1 25115 25116 100 3 0
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
225 #1 29336 29337 50 1 1
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
226
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
227 Note the header line, which starts with "track". The "description" field is used as a label in programs such as IGV. Each of the subsequent lines describe single Cytosines, the 25116th and 29337th base on chromosome 1, respectively. The first position has 3 alignments (or pairs of alignments) indicating methylation and 0 indicating unmethylation (100% methylation) and the second position has 1 alignment each supporting methylation and unmethylation (50% methylation).
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
228
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
229 **Per-CpG/CHG metrics**
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
230
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
231 In many circumstances, it's desireable for metrics from individual Cytosines in a CpG to be merged, producing per-CpG metrics rather than per-Cytosine metrics. This can be accomplished with the **Merge per-Cytosine** parameter. If this is used, then this output::
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
232
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
233 #track type="bedGraph" description="SRR1182519.sorted CpG methylation levels"
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
234 #1 25114 25115 100 2 1
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
235 #1 25115 25116 100 3 0
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
236
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
237 is changed to this::
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
238
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
239 #track type="bedGraph" description="SRR1182519.sorted merged CpG methylation levels"
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
240 #1 25114 25116 100 5 1
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
241
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
242 This also works for CHG-level metrics. If bedGraph files containing per-Cytosine metrics already exist, they can be converted to instead contain per-CpG/CHG metrics with PileOMeth mergeContext.
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
243
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
244 **Methylation bias plotting and correction**
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
245
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
246 In an ideal experiment, we expect that the probability of observing a methylated C is constant across the length of any given read. In practice, however, there are often increases/decreases in observed methylation rate at the ends of reads and/or more global changes. These are termed methylation bias and including such regions in the extracted methylation metrics will result in noisier and less accurate data. For this reason, users are strongly encouraged to make a methylation bias plot.
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
247
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
248 That command will create a methylation bias (mbias for short) plot for each of the strands for which there are valid alignments.
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
249 The resulting mbias graphs are in SVG format and can be viewed in most modern web browsers:
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
250
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
251 .. image:: example.svg
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
252
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
253
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
254 If you have paired-end data, both reads in the pair will be shown separately, as is the case above. The program will suggest regions for inclusion ("--OT 2,0,0,98" above) and mark them on the plot, if applicable. The format of this output is described in PileOMeth extract -h. These suggestions should not be accepted blindly; users are strongly encouraged to have a look for themselves and tweak the actual bounds as appropriate. The lines indicate the average methylation percentage at a given position and the shaded regions the 99.9% confidence interval around it. This is useful in gauging how many methylation calls a given position has relative to its neighbors. Note the spike in methylation at the end of read #2 and the corresponding dip at the beginning of read #1. This is common and these regions can be ignored with the suggested trimming bounds. Note also that the numbers refer to the first and last base that should be included during methylation extraction, not the last and first base to ignore!.
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
255
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
256 -----
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
257
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
258 **PileOMeth** is a Free and Open Source Software, see more details on the PileOMeth_ Website.
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
259
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
260 .. _PileOMeth: https://github.com/dpryan79/PileOMeth
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
261 ]]></help>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
262 <citations>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
263 </citations>
65575e70af7e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 033c712216994524fdd120b771052ac4ca9e51c0-dirty
bgruening
parents:
diff changeset
264 </tool>