1
|
1 <tool id="hmcan" name="HMCan" version="1.11">
|
|
2 <description>Histone Modification detection in Cancer samples</description>
|
|
3 <requirements>
|
|
4 <container type="docker">institutcuriengsintegration/hmcan:1.0</container>
|
|
5 </requirements>
|
|
6 <command interpreter="python">hmcan_wrapper.py '${input_chip_file}' '${input_control_file}' '${hmcan_config_file}' '${gccount_config_file}' '${project_name}' '${output_peaks_file}' '${output_regions_file}' '${output_density_file}' '${output_posterior_proba_file}' '${hmcan_log_report}' '$genome['chr_len_file']' '${file_format}' '${genome.genome_selector}' '${__root_dir__}' 2> '${hmcan_log_report}'</command>
|
|
7
|
|
8
|
|
9 <!--
|
|
10 ###NoteToSelf:
|
|
11 in this version, you still need to :
|
|
12 -Get the correct paths to mappability.GEM
|
|
13 - go to hmcan_wrapper.py
|
|
14 - set the correct paths to binary files (HMCAN, GCCOUNT)
|
|
15 -->
|
|
16
|
|
17 <!-- INPUT DESCRIPTION -->
|
|
18 <inputs>
|
|
19 <!-- project name-->
|
|
20 <param name="project_name" type="text" size="20" label="Project name" help="NOTE: spaces are not allowed.">
|
|
21 <validator type="empty_field" message="You must specify a file name."/>
|
|
22 </param>
|
|
23
|
|
24 <!-- input files NB: format= only if attribute type is data, formats (bed,sam..) are contained in datatypes_conf.xml.sample f-->
|
|
25 <param name="input_chip_file" type="data" format="bed,sam,bam" label="ChIP seq alignment file"/>
|
|
26 <param name="input_control_file" type="data" format="bed,sam,bam" label="Control alignment file"/>
|
|
27 <!-- format-->
|
|
28 <param name="file_format" type="select" label="Select alignment format">
|
|
29 <option value="bed" selected="true">BED</option>
|
|
30 <option value="bam">BAM</option>
|
|
31 <option value="sam">SAM</option>
|
|
32 </param>
|
|
33 <!-- lengths-->
|
|
34 <param name="min_len" type="integer" value="145" label="Minumum fragment length used in the ChIP-seq experiment"/>
|
|
35 <param name="med_len" type="integer" value="150" label="Median fragment length used in the ChIP-seq experiment"/>
|
|
36 <param name="max_len" type="integer" value="155" label="Maximum fragment length used in the ChIP-seq experiment"/>
|
|
37 <param name="bin_size" type="integer" value="50" label="Bin size"/>
|
|
38 <param name="merge_dist" type="integer" value="2000" label="Merge distance" help=" Maximum distance to merge single peaks into a region.This parameter should be set with respect to the nature of the mark; narrow marks (e.g H3K4me1, H3K4me3) can cover 200bp-2Kb, wide marks (e.g. H3K36me3, H3K27me3) can cover 10Kb-100Kb."/>
|
|
39
|
|
40 <param name="p_value" type="float" value="0.01" label="P Value"/>
|
|
41 <param name="input_blacklist_file" type="data" format="bed" label=".BED file with blacklist regions" help="An example of such a bed file for hg19 can be found here: http://xfer.curie.fr/get/GaQHuEopJTw/hg19-blacklist.bed"/>
|
|
42 <!-- SELECT GENOME UNDER STUDY (hg19, hg18, hg38,mm9, mm10)-->
|
|
43 <!-- Each genome is associated with :
|
|
44 ** Mappability Track
|
|
45 ** chr_length file: -->
|
|
46 <conditional name="genome">
|
|
47 <param name="genome_selector" type="select" label="Select the version of the genome under study">
|
|
48 <option value="hg19" selected="true">hg19</option>
|
|
49 <option value="hg18">hg18</option>
|
|
50 <option value="mm10">mm10</option>
|
|
51 <option value="mm9">mm9</option>
|
|
52 </param>
|
|
53 <!-- set the correct genome_path / mappability / chr_len for all genomes! -->
|
|
54 <when value="hg18">
|
|
55 <param name="genome_path" type="hidden" value="/galaxy/annotations"/>
|
|
56 <param name="mappability" type="hidden" value="/galaxy/annotations"/>
|
|
57 <param name="chr_len_file" type="hidden" value="/galaxy/annotations"/>
|
|
58 </when>
|
|
59 <when value="hg19">
|
|
60 <param name="genome_path" type="hidden" value="/galaxy/annotations"/>
|
|
61 <param name="mappability" type="hidden" value="/galaxy/annotations"/>
|
|
62 <param name="chr_len_file" type="hidden" value="/galaxy/annotations"/>
|
|
63 </when>
|
|
64 <when value="mm9">
|
|
65 <param name="genome_path" type="hidden" value="/galaxy/annotations"/>
|
|
66 <param name="mappability" type="hidden" value="/galaxy/annotations"/>
|
|
67 <param name="chr_len_file" type="hidden" value="/galaxy/annotations"/>
|
|
68 </when>
|
|
69 <when value="mm10">
|
|
70 <param name="genome_path" type="hidden" value="/galaxy/annotations"/>
|
|
71 <param name="mappability" type="hidden" value="/galaxy/annotations"/>
|
|
72 <param name="chr_len_file" type="hidden" value="/galaxy/annotations"/>
|
|
73 </when>
|
|
74
|
|
75 </conditional>
|
|
76 <!-- Booleans + LOGING-->
|
|
77 <param name="print_wig" type="boolean" truevalue="True" falsevalue="False" checked="true" label="Print density profil in WIG file" />
|
|
78 <param name="print_posterior_proba" type="boolean" truevalue="True" falsevalue="False" checked="true" label="Print bins posterior probabilites in WIG format" />
|
|
79 <param name="print_logging" type="boolean" truevalue= "True" falsevalue="False" checked="true" label="Print HMCan log"/>
|
|
80 <!-- HMM advanced-->
|
|
81 <conditional name="option_type">
|
|
82 <param name="option_type_selector" type="select" label="Advanced options">
|
|
83 <option value="basic" selected="true">Hide advanced options</option>
|
|
84 <option value="advanced">Show advanced options</option>
|
|
85 </param>
|
|
86 <!-- WHENS-->
|
|
87 <when value="basic"/>
|
|
88 <when value="advanced"> <!-- if advanced create HHM parameters form-->
|
|
89 <param name="max_iter" type="integer" value="20" label="Maximun interation for HMCan algorithm"/>
|
|
90 <param name="iteration_score_threshold" type="integer" value="2" label="Iteration score threshold" help="minimum score to accept a peak into the next iteration"/>
|
|
91 <param name="final_score_threshold" type="integer" value="0" label="Score threshold" help="score threshold to report peak or regions"/>
|
|
92 </when>
|
|
93
|
|
94 </conditional>
|
|
95 </inputs>
|
|
96
|
|
97 <!-- OUTPUT DESCRIPTION -->
|
|
98 <outputs>
|
|
99 <data name="output_peaks_file" format="bed" label="${project_name} histone peaks (bed)"/>
|
|
100 <data name="output_regions_file" format="bed" label="${project_name} histone regions (bed)"/>
|
|
101
|
|
102 <!-- <filter>if this is true, data will be created as normal</filter> -->
|
|
103 <data name="output_density_file" format="wig" label="${project_name} density profile (wig)">
|
|
104 <filter>print_wig==True</filter>
|
|
105 </data>
|
|
106
|
|
107 <data name="output_posterior_proba_file" format="wig" label="${project_name} peaks prosterior probability (wig)">
|
|
108 <filter>print_posterior_proba==True</filter>
|
|
109 </data>
|
|
110
|
|
111 <data name="hmcan_log_report" format="txt" label="${tool.name} log report (txt)">
|
|
112 <filter> print_logging==True</filter>
|
|
113 </data>
|
|
114 </outputs>
|
|
115
|
|
116 <configfiles>
|
|
117 <configfile name="hmcan_config_file">format ${file_format}
|
|
118 GCIndex
|
|
119 genomePath $genome['genome_path'] <!-- /data/tmp/amira/example_seq-->
|
|
120 minLength ${min_len}
|
|
121 medLength ${med_len}
|
|
122 maxLength ${max_len}
|
|
123 smallBinLength ${bin_size}
|
|
124 largeBinLength
|
|
125 pvalueThreshold ${p_value}
|
|
126 mergeDistance ${merge_dist}
|
|
127 blackListFile ${input_blacklist_file}
|
|
128 #if str($option_type ['option_type_selector'])=="advanced":
|
|
129 iterationThreshold ${option_type['iteration_score_threshold']}
|
|
130 finalThreshold ${option_type['final_score_threshold']}
|
|
131 maxIter ${option_type['max_iter']}
|
|
132 #else:
|
|
133 iterationThreshold 5
|
|
134 finalThreshold 10
|
|
135 maxIter 20
|
|
136 #end if
|
|
137 PrintWig ${print_wig}
|
|
138 PrintPosterior ${print_posterior_proba}
|
|
139 </configfile>
|
|
140 <configfile name="gccount_config_file">[general]
|
|
141
|
|
142 window =
|
|
143 step =
|
|
144 outputDir = .
|
|
145 chrFiles = $genome['genome_path']
|
|
146 chrLenFile = $genome['chr_len_file']
|
|
147 gemMappabilityFile = $genome['mappability']
|
|
148 </configfile>
|
|
149 </configfiles>
|
|
150
|
|
151 <help>
|
|
152 **What it does**
|
|
153
|
|
154 HMCan detects histone modifications in cancer samples.
|
|
155
|
|
156 **Cite HMCan**
|
|
157
|
|
158 If you use this tool, please cite : HMCan: a method for detecting chromatin modifications in cancer samples using ChIP-seq data.Haitham Ashoor; Aurelie Herault; Aurelie Kamoun; Francois Radvanyi; Vladimir B. Bajic; Emmanuel Barillot; Valentina Boeva.Bioinformatics 2013; doi: 10.1093/bioinformatics/btt524
|
|
159
|
|
160 </help>
|
|
161 </tool>
|
|
162
|
|
163
|