Repository 'bsmap'
hg clone https://toolshed.g2.bx.psu.edu/repos/eiriche/bsmap

Changeset 4:e5025e0378d0 (2012-11-29)
Previous changeset 3:91e88de226a3 (2012-11-29) Next changeset 5:98a0a60e934c (2012-11-29)
Commit message:
Uploaded
added:
bsmap_meth_caller.xml
b
diff -r 91e88de226a3 -r e5025e0378d0 bsmap_meth_caller.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bsmap_meth_caller.xml Thu Nov 29 10:10:39 2012 -0500
[
@@ -0,0 +1,59 @@
+<tool id="bsmap_meth_caller" name="BSMAP Methylation Caller">
+ <requirements>
+     <requirement type='package'>
+ bsmap
+     </requirement>
+ </requirements>
+ <requirements>
+     <requirement type='package'>
+ samtools
+     </requirement>
+ </requirements>
+        <command interpreter="bash">
+               bsmap_meth_caller.sh
+ input=$bsmap_sam
+ unique=$unique
+ properly=$properly
+ zero_meth = $zero_meth
+ rem_dup = $rem_dup
+ combine_cpg = $combine_cpg
+ trimN = $trimN
+ depth = $depth
+ output=$output
+ tempdir=$output.files_path
+ ref="${ filter( lambda x: str( x[1] ) == str( $bsmap_sam.metadata.dbkey ), $__app__.tool_data_tables['bsmap_fasta'].get_fields() )[0][3] }"
+        </command>
+  <inputs>
+ <param name="bsmap_sam" format="sam" type="data" label="BSMAP mapping output file" help="Must be in SAM format" />
+ <param name="unique" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Process only unique mappings/pairs" />  
+ <param name="properly" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Process only properly paired mappings" /> 
+ <param name="zero_meth" type="boolean" truevalue="true" falsevalue="false" checked="True" label="report loci with zero methylation ratios" /> 
+ <param name="rem_dup" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Remove duplicated reads" />
+ <param name="combine_cpg" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Combine CpG methylaion ratios on both strands" />
+ <param name="trimN" type="integer" value="2" label="Trim N fill-in nucleotides in DNA fragment end-repairing" help="This option is only for pair-end mapping. For RRBS, N could be detetmined by the distance between cuttings sites on forward and reverse strands. For WGBS, N is usually between 0~3" />
+ <param name="depth" type="integer" value="1" label="Minimum sequencing depth to report loci" />
+  </inputs>
+  <outputs>
+ <data name="output" format ="bed" label="BSMAP methylation output" />
+  </outputs>
+  <help>
+**What it does**
+
+This methylation caller parses the BSMAP SAM output file into bed format.
+
+
+**Output format** ::
+
+
+  Column   Description
+  ---------------------- --------------------------------------
+  1 chr chromosome
+  2 pos  position
+  3 strand  strand
+  4 context  context (CHH,CHG,CpG)
+  5 coverage  totally sequenced Cs at that position
+  6 methylated methylated Cs at that position
+  7 percentage methylated percentage of 6
+  </help>
+</tool>
+