comparison blockclust.xml @ 4:4882bc140680 draft

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