0
|
1 <tool id="blockclust" name="BlockClust" version="1.0.0">
|
|
2 <description>Non-coding RNA clustering from deep sequencing read profiles</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="1.0">blockclust</requirement>
|
|
5 <requirement type="package" version="1.1">eden</requirement>
|
|
6 <requirement type="package" version="3.0.1">R_3_0_1</requirement>
|
|
7 <requirement type="package" version="0.1.19">samtools</requirement>
|
|
8 <requirement type="package" version="12.135">mcl</requirement>
|
|
9 <requirement type="package" version="1.0">blockclust_rlibs</requirement>
|
|
10 </requirements>
|
|
11 <version_command>echo '1.0'</version_command>
|
|
12 <command>
|
|
13
|
|
14 #if str($tool_mode.operation) == "pre":
|
|
15 BlockClustPipeLine.pl -m PRE -bam $tool_mode.reads_bam -tbed $tags_bed
|
|
16 #elif str($tool_mode.operation) == "clust":
|
1
|
17 #set $outputdir = $clusters.files_path
|
0
|
18 #set $accept_bed=list()
|
|
19 #set $reject_bed=list()
|
|
20 ## prepare annotations
|
|
21 #if str($tool_mode.reference) == "hg19":
|
|
22 $accept_bed.append("\$BLOCKCLUST_DATA_PATH/annotations/hg19/hg19.accept.bed")
|
|
23 $reject_bed.append("\$BLOCKCLUST_DATA_PATH/annotations/hg19/hg19.reject.bed")
|
|
24 #elif str($tool_mode.reference) == "mm10":
|
|
25 $accept_bed.append("\$BLOCKCLUST_DATA_PATH/annotations/mm10/mm10.accept.bed")
|
|
26 $reject_bed.append("\$BLOCKCLUST_DATA_PATH/annotations/mm10/mm10.reject.bed")
|
|
27 #elif str($tool_mode.reference) == "dm3":
|
|
28 $accept_bed.append("\$BLOCKCLUST_DATA_PATH/annotations/dm3/dm3.accept.bed")
|
|
29 $reject_bed.append("\$BLOCKCLUST_DATA_PATH/annotations/dm3/dm3.reject.bed")
|
|
30 #elif str($tool_mode.reference) == "rheMac3":
|
|
31 $accept_bed.append("\$BLOCKCLUST_DATA_PATH/annotations/rheMac3/rheMac3.accept.bed")
|
|
32 $reject_bed.append("\$BLOCKCLUST_DATA_PATH/annotations/rheMac3/rheMac3.reject.bed")
|
|
33 #elif str($tool_mode.reference) == "panTro4":
|
|
34 $accept_bed.append("\$BLOCKCLUST_DATA_PATH/annotations/panTro3/panTro4.accept.bed")
|
|
35 $reject_bed.append("\$BLOCKCLUST_DATA_PATH/annotations/panTro3/panTro4.reject.bed")
|
|
36 #elif str($tool_mode.reference) == "xenTro3":
|
|
37 $accept_bed.append("\$BLOCKCLUST_DATA_PATH/annotations/xenTro3/xenTro3.accept.bed")
|
|
38 $reject_bed.append("\$BLOCKCLUST_DATA_PATH/annotations/xenTro3/xenTro3.reject.bed")
|
|
39 #elif str($tool_mode.reference) == "celWS235":
|
|
40 $accept_bed.append("\$BLOCKCLUST_DATA_PATH/annotations/celWS235/celWS235.accept.bed")
|
|
41 $reject_bed.append("\$BLOCKCLUST_DATA_PATH/annotations/celWS235/celWS235.reject.bed")
|
|
42 #elif str($tool_mode.reference) == "tair10":
|
|
43 $accept_bed.append("\$BLOCKCLUST_DATA_PATH/annotations/tair10/tair10.accept.bed")
|
|
44 $reject_bed.append("\$BLOCKCLUST_DATA_PATH/annotations/tair10/tair10.reject.bed")
|
|
45 #end if
|
|
46 BlockClustPipeLine.pl -m TEST -f SEQUENCE -c \$BLOCKCLUST_DATA_PATH/blockclust.config
|
|
47 -t $tool_mode.input_bbo
|
|
48 -a #echo ''.join( $accept_bed )
|
|
49 -r #echo ''.join( $reject_bed )
|
|
50 -o $outputdir
|
|
51 #if str($tool_mode.pred.enable_pred) == "yes":
|
|
52 -p
|
|
53 -pm $tool_mode.pred.pred_mode
|
|
54 -md \$BLOCKCLUST_DATA_PATH/models
|
|
55 -x 3;
|
|
56 #if str($tool_mode.pred.pred_mode) == "nearest_neighbour":
|
|
57 cp #echo os.path.join($outputdir,'nearest_neighbour_predictions.txt')# $nearest_neighbour_pred_bed;
|
|
58 #elif str($tool_mode.pred.pred_mode) == "model_based":
|
|
59 cp #echo os.path.join($outputdir,'model_based_predictions.txt')# $model_based_pred_bed;
|
|
60 #end if
|
|
61 #else:
|
|
62 ;
|
|
63 #end if
|
|
64
|
|
65 cp #echo os.path.join($outputdir, 'mcl_clusters','all_clusters.bed')# $clusters;
|
|
66 cp #echo os.path.join($outputdir, 'hclust_tree.pdf')# $hclust_plot;
|
|
67 cp #echo os.path.join($outputdir, 'discretized.gspan.tab')# $sim_tab_out
|
|
68 #elif str($tool_mode.operation) == "post":
|
1
|
69 BlockClustPipeLine.pl -m POST -cbed $tool_mode.clusters_bed -cm $tool_mode.cmsearch_out -tab $tool_mode.sim_tab_in -o ./;
|
0
|
70 #end if
|
|
71 </command>
|
|
72 <inputs>
|
|
73 <conditional name="tool_mode">
|
|
74 <param name="operation" type="select" label="Select mode of operation">
|
|
75 <option value="pre">Pre-processing </option>
|
|
76 <option value="clust">Clustering</option>
|
|
77 <option value="post">Post-processing</option>
|
|
78 </param>
|
|
79 <when value="pre">
|
|
80 <param name="reads_bam" type="data" format="bam" label="BAM file containing alignments" />
|
|
81 </when>
|
|
82 <when value="clust">
|
|
83 <param name="input_bbo" type="data" format="tabular" label="Input blockgroups file" />
|
|
84 <param name="reference" type="select" label="Select reference genome">
|
|
85 <option value="hg19">Human (hg19)</option>
|
|
86 <option value="mm10">Mouse (mm10)</option>
|
|
87 <option value="dm3">Fly (dm3)</option>
|
|
88 <option value="rheMac3">Monkey (rheMac3)</option>
|
|
89 <option value="panTro4">Chimp (panTro4)</option>
|
|
90 <option value="xenTro3">Frog (xenTro3)</option>
|
|
91 <option value="celWS235">C. elegans (celWS235)</option>
|
|
92 <option value="tair10">Arabidopsis thaliana (tair10)</option>
|
|
93 </param>
|
|
94 <conditional name="pred">
|
|
95 <param name="enable_pred" type="select" label="Would you like to perform classification?">
|
|
96 <option value="no">No</option>
|
|
97 <option value="yes">Yes</option>
|
|
98 </param>
|
|
99 <when value="yes">
|
|
100 <param name="pred_mode" type="select" label="Mode of classification">
|
|
101 <option value="model_based">Model based</option>
|
|
102 <option value="nearest_neighbour">Nearest neighbour</option>
|
|
103 </param>
|
|
104 </when>
|
|
105 </conditional>
|
|
106 </when>
|
|
107 <when value="post">
|
|
108 <param name="cmsearch_out" type="data" format="tabular" label="Output of cmsearch tool" />
|
|
109 <param name="clusters_bed" type="data" format="bed" label="BED file containing clusters (output of BlockClust)" />
|
|
110 <param name="sim_tab_in" type="data" format="tabular" label="Pairwise similarities file" />
|
|
111 </when>
|
|
112 </conditional>
|
|
113 </inputs>
|
|
114
|
|
115 <outputs>
|
|
116 <data format="bed" name="tags_bed" label="BlockClust: BAM to BED on ${on_string}">
|
|
117 <filter> tool_mode["operation"]=="pre"</filter>
|
|
118 </data>
|
|
119 <data format="pdf" name="hclust_plot" label="BlockClust: Hierarchical clustering plot on ${on_string}" >
|
|
120 <filter> tool_mode["operation"]=="clust"</filter>
|
|
121 </data>
|
|
122 <data format="bed" name="clusters" label="BlockClust: Clustering BED on ${on_string}">
|
|
123 <filter> tool_mode["operation"]=="clust"</filter>
|
|
124 </data>
|
|
125 <data format="bed" name="model_based_pred_bed" label="BlockClust: Model based prediction BED on ${on_string}">
|
|
126 <filter>
|
|
127 ((
|
|
128 tool_mode["operation"] == 'clust' and
|
|
129 tool_mode["pred"]["enable_pred"] == "yes" and
|
|
130 tool_mode["pred"]["pred_mode"] == "model_based"
|
|
131 ))
|
|
132 </filter>
|
|
133 </data>
|
|
134 <data format="bed" name="nearest_neighbour_pred_bed" label="BlockClust: Nearest neighbour prediction BED on ${on_string}">
|
|
135 <filter>
|
|
136 ((
|
|
137 tool_mode["operation"] == 'clust' and
|
|
138 tool_mode["pred"]["enable_pred"] == "yes" and
|
|
139 tool_mode["pred"]["pred_mode"] == "nearest_neighbour"
|
|
140 ))
|
|
141 </filter>
|
|
142 </data>
|
|
143 <data format="tabular" name="sim_tab_out" label="BlockClust: Pairwise similarities on ${on_string}">
|
|
144 <filter> tool_mode["operation"]=="clust"</filter>
|
|
145 </data>
|
1
|
146 <data format="pdf" name="cluster_dist" from_work_dir="cluster_distribution.pdf" label="BlockClust: Cluster distribution on ${on_string}" >
|
0
|
147 <filter> tool_mode["operation"]=="post"</filter>
|
|
148 </data>
|
1
|
149 <data format="pdf" name="cluster_hclust" from_work_dir="hclust_tree_clusters.pdf" label="BlockClust: Hierarchical clustering plot of cluster centroids on ${on_string}" >
|
0
|
150 <filter> tool_mode["operation"]=="post"</filter>
|
|
151 </data>
|
|
152 </outputs>
|
|
153 <help>
|
|
154
|
|
155 .. class:: infomark
|
|
156
|
|
157 **What it does**
|
|
158
|
|
159 Clusters the read profiles (i.e., blockgroups) from the blockbuster tool.
|
|
160
|
|
161 **Inputs**
|
|
162
|
|
163 BlockClust needs output of tool blockbuster as input
|
|
164
|
|
165 **Output**
|
|
166
|
|
167 BlockClust produces a fasta file containing clusters.
|
|
168
|
|
169 ------
|
|
170
|
|
171 **Licenses**
|
|
172
|
|
173 If **BlockClust** is used to obtain results for scientific publications it
|
|
174 should be cited as [1]_.
|
|
175
|
|
176 **References**
|
|
177
|
|
178 .. [1]
|
|
179
|
|
180
|
|
181 </help>
|
|
182 </tool>
|