|
| 1 | +<tool id="methtools_calling" name="Methylation calling" version="0.1.1"> |
| 2 | + <description></description> |
| 3 | + <requirements> |
| 4 | + <requirement type="package" version="0.1_602edc990c6a36e2930f88f3ae5585430164d643">methtools</requirement> |
| 5 | + </requirements> |
| 6 | + <command> |
| 7 | + calling |
| 8 | + --processors 4 |
| 9 | + -i $infile |
| 10 | + #if $infile.ext == "bam": |
| 11 | + --bam |
| 12 | + #end if |
| 13 | + |
| 14 | + #if $cpg == 'true': |
| 15 | + --CpG $cpg_output |
| 16 | + #end if |
| 17 | + |
| 18 | + #if $chh == 'true': |
| 19 | + --CHH $chh_output |
| 20 | + #end if |
| 21 | + |
| 22 | + #if $chg == 'true': |
| 23 | + --CHG $chg_output |
| 24 | + #end if |
| 25 | + |
| 26 | + #if $params.settingsType == "custom": |
| 27 | + $params.phred |
| 28 | + ## default 10 |
| 29 | + --mincov $params.mincov |
| 30 | + ## default 20 |
| 31 | + --minqual $params.minqual |
| 32 | + ## default 100 |
| 33 | + --readlen $params.readlen |
| 34 | + $params.methylkit |
| 35 | + $params.header |
| 36 | + #end if |
| 37 | + |
| 38 | + </command> |
| 39 | + <inputs> |
| 40 | + |
| 41 | + <param name="infile" type="data" format="sam,bam" label="SAM or BAM file" help="SAM or BAM file." /> |
| 42 | + <param name="cpg" type="boolean" truevalue="true" falsevalue="false" checked="True" label="Calculate CpG methylation scores" help="" /> |
| 43 | + <param name="chh" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Calculate CHH methylation scores" help="" /> |
| 44 | + <param name="chg" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Calculate CHG methylation scores" help="" /> |
| 45 | + |
| 46 | + <conditional name="params"> |
| 47 | + <param name="settingsType" type="select" label="Meythylation calling - advanced settings" help="You can use the default settings or set custom values for any parameter."> |
| 48 | + <option value="default">Use Defaults</option> |
| 49 | + <option value="custom">Full parameter list</option> |
| 50 | + </param> |
| 51 | + <when value="default" /> |
| 52 | + <!-- Full/advanced params. --> |
| 53 | + <when value="custom"> |
| 54 | + <param name="phred" type="boolean" truevalue="--phred64" falsevalue="" checked="False" label="Run FastQC in the default mode on the FastQ file once trimming is complete" help="" /> |
| 55 | + <param name="mincov" type="integer" value="10" label="min coverage" help="For more information please see below." /> |
| 56 | + <param name="minqual" type="integer" value="20" label="min quality" help="For more information please see below." /> |
| 57 | + <param name="readlen" type="integer" value="100" label="Read length" /> |
| 58 | + <param name="methylkit" type="boolean" truevalue="--methylkit" falsevalue="" checked="False" label="The generated output files are in methylkit format" help="" /> |
| 59 | + <param name="header" type="boolean" truevalue="--header" falsevalue="" checked="False" label="Print header line in output files" help="" /> |
| 60 | + </when> <!-- full --> |
| 61 | + </conditional> <!-- params --> |
| 62 | + |
| 63 | + </inputs> |
| 64 | + <outputs> |
| 65 | + |
| 66 | + <data format="bed" name="cpg_output" label="${tool.name} on ${on_string}: CpG"> |
| 67 | + <filter>cpg is True</filter> |
| 68 | + <change_format> |
| 69 | + <when input="params.methylkit" value="--methylkit" format="tabular" /> |
| 70 | + </change_format> |
| 71 | + </data> |
| 72 | + |
| 73 | + <data format="bed" name="chh_output" label="${tool.name} on ${on_string}: CHH"> |
| 74 | + <filter>chh is True</filter> |
| 75 | + <change_format> |
| 76 | + <when input="params.methylkit" value="--methylkit" format="tabular" /> |
| 77 | + </change_format> |
| 78 | + </data> |
| 79 | + |
| 80 | + <data format="bed" name="chg_output" label="${tool.name} on ${on_string}: CHG"> |
| 81 | + <filter>chg is True</filter> |
| 82 | + <change_format> |
| 83 | + <when input="params.methylkit" value="--methylkit" format="tabular" /> |
| 84 | + </change_format> |
| 85 | + </data> |
| 86 | + |
| 87 | + </outputs> |
| 88 | + <tests> |
| 89 | + </tests> |
| 90 | + |
| 91 | + <help> |
| 92 | + |
| 93 | +**What it does** |
| 94 | + |
| 95 | +Methylation calling of SAM or BAM files produced with bismark. BAM files can be processed in parallel and should be much faster. |
| 96 | + |
| 97 | + </help> |
| 98 | +</tool> |
0 commit comments