|
0
|
1 <?xml version="1.0" encoding="UTF-8"?>
|
|
1
|
2 <tool id="fuma" name="FuMa" version="2.6.6.a">
|
|
0
|
3 <description>FuMa (FusionMatcher) matches detected fusion genes based on gene name subset matching (designed in particular for RNA-Seq).</description>
|
|
|
4
|
|
|
5 <requirements>
|
|
1
|
6 <requirement type="package" version="2.6.6">fuma</requirement>
|
|
0
|
7 </requirements>
|
|
|
8
|
|
|
9 <version_command>fuma --version</version_command><!-- -V also works, but is not GNU standard -->
|
|
|
10
|
|
|
11 <command>
|
|
|
12 #import pipes
|
|
|
13
|
|
|
14 #set $gene_annotations = []
|
|
|
15 #set $samples = []
|
|
|
16 #set $links = []
|
|
|
17
|
|
|
18 #for $i, $d in enumerate( $datasets )
|
|
|
19
|
|
|
20 #set $sample_name = pipes.quote(str($d['sample'].name))
|
|
|
21
|
|
|
22 #set $gene_annotations = $gene_annotations + [ "ga_" + str($i) + ":" + str($d['gene_annotation'].file_name) ]
|
|
|
23
|
|
|
24 #set $samples = $samples + [ $sample_name + ":" + str($d['format']) + ":" + str($d['sample'].file_name) ]
|
|
|
25 #set $links = $links + [ $sample_name + ":" + str("ga_") + str($i) ]
|
|
|
26 #end for
|
|
|
27
|
|
|
28 #set $gene_annotations_str = " ".join(gene_annotations)
|
|
|
29 #set $samples_str = " ".join(samples)
|
|
|
30 #set $links_str = " ".join(links)
|
|
|
31
|
|
|
32 fuma
|
|
|
33 -a
|
|
|
34 $gene_annotations_str
|
|
|
35 -s
|
|
|
36 $samples_str
|
|
|
37 -l
|
|
|
38 $links_str
|
|
|
39 -f 'list'
|
|
|
40 -o $fuma_overview
|
|
|
41 </command>
|
|
|
42
|
|
|
43 <inputs>
|
|
|
44 <repeat name="datasets" title="FusionGene Datasets" min="2">
|
|
|
45 <param name="sample" type="data" format="txt, tabular" label="Dataset ()" />
|
|
|
46 <param name="format" type="select" label="Format of dataset">
|
|
|
47 <option value="chimerascan">ChimeraScan</option>
|
|
|
48 <option value="defuse">DeFuse</option>
|
|
|
49 <option value="completegenomics">Complete Genomics</option>
|
|
|
50 <option value="tophatfusionpostpotentialfusion">Tophat Fusion Post (potential fusion file)</option>
|
|
|
51 <option value="tophatfusionpostresult">Tophat Fusion Post (result file)</option>
|
|
|
52 <option value="tophatfusionpre">Tophat Fusion Pre (final list file)</option>
|
|
|
53 <option value="fusioncatcherfinal">FusionCatcher (final-list file)</option>
|
|
|
54 <option value="fusionmap">FusionMap</option>
|
|
|
55 <option value="rnastarchimeric">STAR (chimeric file)</option>
|
|
|
56 <option value="oncofuse">Oncofuse</option>
|
|
|
57 <option value="trinitygmap">GMAP (As step after Trinity)</option>
|
|
|
58 </param>
|
|
|
59 <param name="gene_annotation" type="data" format="bed" label="Corresponding gene-name annotation file (BED format)" help="Make use of persistent gene names if different gene names are being used." />
|
|
|
60 </repeat>
|
|
|
61 </inputs>
|
|
|
62
|
|
|
63 <outputs>
|
|
|
64 <data format="tabular" name="fuma_overview" label="${tool.name} on ${', '.join([ str(d['sample'].hid)+': '+d['sample'].name for d in $datasets ])}" />
|
|
|
65 </outputs>
|
|
|
66
|
|
|
67 <help>
|
|
|
68 </help>
|
|
|
69 </tool>
|