|
0
|
1 <tool id="emsar" name="EMSAR" version="1.2j">
|
|
|
2 <description></description>
|
|
|
3
|
|
|
4 <command>
|
|
|
5
|
|
|
6 #set rsh_path = $refIndex.fields.rshPath
|
|
|
7 #set rsh = $rsh_path + "." + $nRL.__str__() + ".rsh"
|
|
|
8 #set libType = ""
|
|
|
9
|
|
|
10 #if $bPaired
|
|
|
11 #if $sLT.__str__() == "n"
|
|
|
12 #set libType = "ns"
|
|
|
13 #end if
|
|
|
14 #if $sLT.__str__() == "f"
|
|
|
15 #set libType = "ssfr"
|
|
|
16 #end if
|
|
|
17 #if $sLT.__str__() == "r"
|
|
|
18 #set libType = "ssrf"
|
|
|
19 #end if
|
|
|
20 #else
|
|
|
21 #if $sLT.__str__() == "n"
|
|
|
22 #set libType = "ns"
|
|
|
23 #end if
|
|
|
24 #if $sLT.__str__() == "f"
|
|
|
25 #set libType = "ssf"
|
|
|
26 #end if
|
|
|
27 #if $sLT.__str__() == "r"
|
|
|
28 #set libType = "ssr"
|
|
|
29 #end if
|
|
|
30 #end if
|
|
|
31
|
|
|
32 emsar
|
|
|
33 -P
|
|
|
34 #if $sBS.__str__() == "S"
|
|
|
35 -S
|
|
|
36 #end if
|
|
|
37 #if $sBS.__str__() == "B"
|
|
|
38 -B
|
|
|
39 #end if
|
|
|
40 -p 8
|
|
|
41 -h $sHT
|
|
|
42 #if $bG
|
|
|
43 -g
|
|
|
44 #end if
|
|
|
45 -s $libType
|
|
|
46 -I $rsh
|
|
|
47 output
|
|
|
48 emsar
|
|
|
49 $input_bam
|
|
|
50 2> emsar.log
|
|
|
51
|
|
|
52 </command>
|
|
|
53
|
|
|
54 <stdio></stdio>
|
|
|
55
|
|
|
56 <inputs>
|
|
|
57 <param format="bam,sam" compression="none" name="input_bam" type="data" label="Bowtie Alignment BAM file" help=""/>
|
|
|
58 <param name="refIndex" type="select" label="Select a reference genome" help="">
|
|
|
59 <options from_data_table="emsar_indices">
|
|
|
60 <filter type="sort_by" column="2"/>
|
|
|
61 <validator type="no_options" message="No genomes are available for the selected input dataset"/>
|
|
|
62 </options>
|
|
|
63 </param>
|
|
|
64 <param name="sBS" type="select" label="Input alignment file type ">
|
|
|
65 <option value="S">SAM</option>
|
|
|
66 <option value="B">BAM</option>
|
|
|
67 </param>
|
|
|
68 <param name="sHT" type="select" label="Transcriptome header type">
|
|
|
69 <option value="R">RefSeq</option>
|
|
|
70 <option value="E">Ensembl</option>
|
|
|
71 </param>
|
|
|
72 <param name="bG" type="boolean" label="Generate list of all segments with their associated sequence-sharing set and transcript(seperated by '+')" value="True" />
|
|
|
73 <param name="bPaired" type="boolean" label="Is this paired-end sequenced data ?" value="True" />
|
|
|
74 <param name="nRL" type="integer" label="read length" value="101" />
|
|
|
75 <param name="sLT" type="select" label="library type">
|
|
|
76 <option value="n">Unstranded</option>
|
|
|
77 <option value="f">Forward Stranded</option>
|
|
|
78 <option value="r">Reverse Stranded</option>
|
|
|
79 </param>
|
|
|
80 </inputs>
|
|
|
81
|
|
|
82 <outputs>
|
|
|
83 <data format="txt" name="fpkm" label="${tool.name} on ${on_string}: FPKM" from_work_dir="output/emsar.0.fpkm" />
|
|
|
84 <data format="txt" name="fraglength_stat" label="${tool.name} on ${on_string}: Fracgment Length Effect" from_work_dir="output/emsar.0.fraglength_effect" />
|
|
|
85 <data format="txt" name="segments" label="${tool.name} on ${on_string}: Segments" from_work_dir="output/emsar.0.segments" />
|
|
|
86 </outputs>
|
|
|
87
|
|
|
88 <help>
|
|
|
89
|
|
|
90 </help>
|
|
|
91 </tool>
|