# HG changeset patch # User bgruening # Date 1497330091 14400 # Node ID 906db57d5d65bf26c23732ab8518d04b853cc832 # Parent ccc755bdf11d3f595c9c102952edbf2b3c8b2661 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/pileometh commit 08bee869cbf7be7a70e2d7921ff42539bf5acd4d diff -r ccc755bdf11d -r 906db57d5d65 MethylDackel.xml --- a/MethylDackel.xml Sun Mar 12 09:58:03 2017 -0400 +++ b/MethylDackel.xml Tue Jun 13 01:01:31 2017 -0400 @@ -1,7 +1,7 @@ - + A tool for processing bisulfite sequencing alignments - methyldackel + methyldackel @@ -22,6 +22,7 @@ MethylDackel $main_task.task + -@ \${GALAXY_SLOTS:-4} #if $main_task.task == "extract": -o output $main_task.mergeContext @@ -50,6 +51,8 @@ -p $advanced_options.min_phred -D $advanced_options.max_pbdepth #if $main_task.task == "extract": + --minOppositeDepth $advanced_options.minOppositeDepth + --maxVariantFrac $advanced_options.maxVariantFrac -d $advanced_options.min_pbdepth --ignoreFlags $advanced_options.ignoreFlags --requireFlags $advanced_options.requireFlags @@ -153,6 +156,10 @@ help="By deault, any alignment marked as secondary (bit 0x100), failing QC (bit 0x200), a PCR/optical duplicate (0x400) or supplemental (0x800) is ignored. This equates to a value of 0xF00 or 3840 in decimal. If you would like to change that, you can specify a new value here." /> + + @@ -309,7 +316,7 @@ - + @@ -441,6 +448,12 @@ methylKit has its own format, which can be produced with the `--methylKit` option. Merging Cs into CpGs or CHGs is forbidden in this format. Likewise, this option is mutually exclusive with `--logit` et al. +**Excluding likely variant sites** + +If your samples are not genetically homogenous, it can sometimes be advantageous to exclude likely variant sites from methylation extraction. As an example, since unmethylated Cs are read as Ts, extracting methylation from a position with a C->T mutation will cause incorrect results. In such a case, the opposite strand will have an A rather than a G (in the non-variant case, there would be a G regardless of methylation status). MethylDackel tracks the number of non-Gs on the strand opposite of Cs in the reference sequence. If the fraction of these exceeds the `--maxVariantFrac` option, then that position will be excluded from output. To exclude cases where the `--maxVariantFrac` value is exceeded only due to low coverage, the opposite strand must have a depth of coverage of at least `--minOppositeDepth`. Note that the default value for `--minOppositeDepth` is 0, indicating that the variant site exclusion process is skipped. + +Note that if one additionally specifies `--mergeContext`, that a given CpG or CHG will be excluded from output if either of its individual Cs would be excluded given the specified `--minOppositeDepth` and `--maxVariantFrac`. + ----- diff -r ccc755bdf11d -r 906db57d5d65 test-data/test_2.bedGraph --- a/test-data/test_2.bedGraph Sun Mar 12 09:58:03 2017 -0400 +++ b/test-data/test_2.bedGraph Tue Jun 13 01:01:31 2017 -0400 @@ -1,1 +1,2 @@ track type="bedGraph" description="output CHH methylation levels" +chrCG 98 99 100 1 0 diff -r ccc755bdf11d -r 906db57d5d65 tool_dependencies.xml --- a/tool_dependencies.xml Sun Mar 12 09:58:03 2017 -0400 +++ b/tool_dependencies.xml Tue Jun 13 01:01:31 2017 -0400 @@ -1,9 +1,9 @@ - + - https://github.com/dpryan79/MethylDackel/archive/0.2.1.tar.gz + https://github.com/dpryan79/MethylDackel/archive/0.3.0.tar.gz make mkdir $INSTALL_DIR/bin make install prefix=$INSTALL_DIR/bin/