|
4
|
1 <tool id="blockclust" name="BlockClust" version="0.1">
|
|
|
2 <description>Non-coding RNA clustering from deep sequencing read profiles</description>
|
|
|
3 <requirements>
|
|
|
4 <requirement type="package" version="1.0">blockclust</requirement>
|
|
5
|
5 <requirement type="package" version="3.0.1">R_3_0_1</requirement>
|
|
|
6 <requirement type="package" version="0.1.19 ">samtools</requirement>
|
|
|
7 <requirement type="R-module">ggplot2</requirement>
|
|
|
8 <requirement type="R-module">ape</requirement>
|
|
4
|
9 </requirements>
|
|
|
10 <!--<version_command> -version</version_command>-->
|
|
|
11 <command>
|
|
|
12 #set $blockclust_data_path = \$BLOCKCLUST_DATA_PATH
|
|
6
|
13
|
|
4
|
14 #if str($mode.operation) == "pre":
|
|
|
15 #set $outputdir = $tags_bed.extra_files_path
|
|
|
16 BlockClustPipeLine.pl -m PRE -bam $mode.reads_bam -tbed $tags_bed;
|
|
|
17 #end if
|
|
|
18
|
|
|
19 #if str($mode.operation) == "clust":
|
|
|
20 #set $outputdir = $clusters.extra_files_path
|
|
|
21 #set $accept_bed=list()
|
|
|
22 #set $reject_bed=list()
|
|
|
23 ## prepare annotations
|
|
|
24 #if str($mode.reference) == "hg19":
|
|
|
25 $accept_bed.append("$blockclust_data_path/annotations/hg19/hg19.accept.bed")
|
|
|
26 $reject_bed.append("$blockclust_data_path/annotations/hg19/hg19.reject.bed")
|
|
|
27 #elif str($mode.reference) == "mm10":
|
|
|
28 $accept_bed.append("$blockclust_data_path/annotations/mm10/mm10.accept.bed")
|
|
|
29 $reject_bed.append("$blockclust_data_path/annotations/mm10/mm10.reject.bed")
|
|
|
30 #elif str($mode.reference) == "dm3":
|
|
|
31 $accept_bed.append("$blockclust_data_path/annotations/dm3/dm3.accept.bed")
|
|
|
32 $reject_bed.append("$blockclust_data_path/annotations/dm3/dm3.reject.bed")
|
|
|
33 #end if
|
|
|
34 BlockClustPipeLine.pl -m TEST -f SEQUENCE -c $blockclust_data_path/blockclust.config
|
|
|
35 -t $mode.input_bbo
|
|
|
36 -a #echo ''.join( $accept_bed )
|
|
|
37 -r #echo ''.join( $reject_bed )
|
|
|
38 -o $outputdir;
|
|
|
39 cp #echo os.path.join($outputdir, 'mcl_clusters','all_clusters.bed')# $clusters;
|
|
|
40 cp #echo os.path.join($outputdir, 'hclust_tree.pdf')# $hclust_plot;
|
|
|
41 cp #echo os.path.join($outputdir, 'discretized.gspan.tab')# $sim_tab_out;
|
|
|
42 #end if
|
|
|
43
|
|
|
44 #if str($mode.operation) == "post":
|
|
|
45 #set $outputdir = $clusters_bed.extra_files_path
|
|
6
|
46 BlockClustPipeLine.pl -m POST -cbed $mode.clusters_bed -cm $mode.cmsearch_out -tab $mode.sim_tab_in -o $outputdir -rfam $blockclust_data_path/rfam_map.txt;
|
|
4
|
47 cp #echo os.path.join($outputdir, 'cluster_distribution.pdf')# $cluster_dist;
|
|
|
48 #end if
|
|
|
49 </command>
|
|
|
50 <inputs>
|
|
|
51 <conditional name="mode">
|
|
|
52 <param name="operation" type="select" label="Select mode of operation">
|
|
|
53 <option value="pre">Pre-processing </option>
|
|
|
54 <option value="clust">Clustering</option>
|
|
|
55 <option value="post">Post-processing</option>
|
|
|
56 </param>
|
|
|
57 <when value="pre">
|
|
|
58 <param name="reads_bam" type="data" format="bam" label="BAM file containing alignments" />
|
|
|
59 </when>
|
|
|
60 <when value="clust">
|
|
|
61 <param name="input_bbo" type="data" format="tabular" label="Input blockgroups file" />
|
|
|
62 <param name="reference" type="select" label="Select reference genome">
|
|
|
63 <option value="hg19">Human (hg19)</option>
|
|
|
64 <option value="mm10">Mouse (mm10)</option>
|
|
|
65 <option value="dm3">Fly (dm3)</option>
|
|
|
66 </param>
|
|
|
67 </when>
|
|
|
68 <when value="post">
|
|
5
|
69 <param name="cmsearch_out" type="data" format="tabular" label="Output of cmsearch tool" />
|
|
4
|
70 <param name="clusters_bed" type="data" format="bed" label="BED file containing clusters (output of BlockClust)" />
|
|
|
71 <param name="sim_tab_in" type="data" format="tabular" label="Pairwise similarities file" />
|
|
|
72 </when>
|
|
|
73 </conditional>
|
|
|
74 </inputs>
|
|
|
75
|
|
|
76 <outputs>
|
|
|
77 <data format="bed" name="tags_bed" label="BlockClust: BAM to BED on ${on_string}">
|
|
|
78 <filter> mode["operation"]=="pre"</filter>
|
|
|
79 </data>
|
|
5
|
80 <data format="pdf" name="hclust_plot" label="BlockClust: Hierarchical clustering plot on ${on_string}" >
|
|
4
|
81 <filter> mode["operation"]=="clust"</filter>
|
|
|
82 </data>
|
|
5
|
83 <data format="bed" name="clusters" label="BlockClust: Clustering BED on ${on_string}">
|
|
4
|
84 <filter> mode["operation"]=="clust"</filter>
|
|
|
85 </data>
|
|
|
86 <data format="tabular" name="sim_tab_out" label="BlockClust: Pairwise similarities on ${on_string}">
|
|
|
87 <filter> mode["operation"]=="clust"</filter>
|
|
|
88 </data>
|
|
|
89 <data format="tabular" name="analysis" label="BlockClust: Cluster analysis on ${on_string}" >
|
|
|
90 <filter> mode["operation"]=="post"</filter>
|
|
|
91 </data>
|
|
|
92 <data format="pdf" name="cluster_dist" label="BlockClust: Cluster distribution on ${on_string}" >
|
|
|
93 <filter> mode["operation"]=="post"</filter>
|
|
|
94 </data>
|
|
|
95 </outputs>
|
|
|
96 <help>
|
|
|
97
|
|
|
98 .. class:: infomark
|
|
|
99
|
|
|
100 **What it does**
|
|
|
101
|
|
|
102 Clusters the read profiles (i.e., blockgroups) from the blockbuster tool.
|
|
|
103
|
|
|
104 **Inputs**
|
|
|
105
|
|
|
106 BlockClust needs output of tool blockbuster as input
|
|
|
107
|
|
|
108 **Output**
|
|
|
109
|
|
|
110 BlockClust produces a fasta file containing clusters.
|
|
|
111
|
|
|
112 ------
|
|
|
113
|
|
|
114 **Licenses**
|
|
|
115
|
|
|
116 If **BlockClust** is used to obtain results for scientific publications it
|
|
|
117 should be cited as [1]_.
|
|
|
118
|
|
|
119 **References**
|
|
|
120
|
|
|
121 .. [1]
|
|
|
122
|
|
|
123 ------
|
|
|
124
|
|
|
125 </help>
|
|
|
126 </tool>
|