annotate blockclust.xml @ 0:768a67f6ae18 draft

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