annotate bsmap_meth_caller.xml @ 19:e3e36b45c1da draft

Uploaded
author eiriche
date Mon, 03 Dec 2012 02:38:26 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
1 <tool id="bsmap_meth_caller" name="BSMAP Methylation Caller">
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
2 <requirements>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
3 <requirement type='package' version="2.6">bsmap</requirement>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
4 <requirement type='package'>samtools</requirement>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
5 <command interpreter="bash">
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
6 bsmap_meth_caller.sh
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
7 input=$bsmap_sam
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
8 unique=$unique
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
9 properly=$properly
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
10 zero_meth = $zero_meth
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
11 rem_dup = $rem_dup
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
12 combine_cpg = $combine_cpg
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
13 trimN = $trimN
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
14 depth = $depth
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
15 output=$output
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
16 tempdir=$output.files_path
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
17 #if $refGenomeSource.genomeSource == "history":
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
18 ref="${refGenomeSource.myFile}"
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
19 #else
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
20 ref="${refGenomeSource.builtinFile.fields.path}"
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
21 #end if
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
22
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
23 </command>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
24 <inputs>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
25 <conditional name="refGenomeSource">
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
26 <param name="genomeSource" type="select" label="Will you select a reference genome from your history or use a built-in reference?" help="Must be the same reference as used for the mapping">
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
27 <option value="builtin">Use a built-in reference</option>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
28 <option value="history">Use one from the history</option>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
29 </param>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
30 <when value="builtin">
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
31 <param name="builtinFile" type="select" label="Select the reference genome">
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
32 <options from_data_table="bsmap_fasta">
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
33 <filter type="sort_by" column="2" />
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
34 <validator type="no_options" message="No reference genomes are available" />
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
35 </options>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
36 </param>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
37 </when>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
38 <when value="history">
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
39 <param name="myFile" type="data" format="fasta" label="Select the reference genome" />
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
40 </when>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
41 </conditional>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
42
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
43 <param name="bsmap_sam" format="sam" type="data" label="BSMAP mapping output file" help="Must be in SAM format" />
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
44 <param name="unique" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Process only unique mappings/pairs" />
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
45 <param name="properly" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Process only properly paired mappings" />
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
46 <param name="zero_meth" type="boolean" truevalue="true" falsevalue="false" checked="True" label="report loci with zero methylation ratios" />
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
47 <param name="rem_dup" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Remove duplicated reads" />
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
48 <param name="combine_cpg" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Combine CpG methylaion ratios on both strands" />
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
49 <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" />
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
50 <param name="depth" type="integer" value="1" label="Minimum sequencing depth to report loci" />
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
51 </inputs>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
52 <outputs>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
53 <data name="output" format ="bed" label="BSMAP methylation output" />
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
54 </outputs>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
55 <help>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
56 **What it does**
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
57
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
58 This methylation caller parses the BSMAP SAM output file into bed format.
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
59
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
60
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
61 **Output format** ::
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
62
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
63
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
64 Column Description
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
65 ---------------------- --------------------------------------
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
66 1 chr chromosome
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
67 2 pos position
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
68 3 strand strand
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
69 4 context context (CHH,CHG,CpG)
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
70 5 coverage totally sequenced Cs at that position
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
71 6 methylated methylated Cs at that position
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
72 7 percentage methylated percentage of 6
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
73 </help>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
74 </tool>
e3e36b45c1da Uploaded
eiriche
parents:
diff changeset
75