31
|
1 <tool id="bam2wig" name="BAM to Wiggle" version="1.1">
|
29
|
2 <description>
|
|
3 converts all types of RNA-seq data from .bam to .wig
|
|
4 </description>
|
|
5 <requirements>
|
31
|
6 <requirement type="package" version="2.11.0">R</requirement>
|
|
7 <requirement type="package" version="1.7.1">numpy</requirement>
|
29
|
8 <requirement type="package" version="2.3.7">rseqc</requirement>
|
|
9 </requirements>
|
31
|
10 <command>
|
|
11 ln -s "${input}" "local_input.bam" &&
|
|
12 ln -s "${input.metadata.bam_index}" "local_input.bam.bai" &&
|
|
13 bam2wig.py -i "local_input.bam" -s $chromsize -o outfile
|
29
|
14
|
|
15 #if str($strand_type.strand_specific) == "pair"
|
|
16 -d
|
|
17 #if str($strand_type.pair_type) == "sd"
|
|
18 '1++,1--,2+-,2-+'
|
|
19 #else
|
|
20 '1+-,1-+,2++,2--'
|
|
21 #end if
|
|
22 #end if
|
|
23
|
|
24 #if str($strand_type.strand_specific) == "single"
|
|
25 -d
|
|
26 #if str($strand_type.single_type) == "s"
|
|
27 '++,--'
|
|
28 #else
|
|
29 '+-,-+'
|
|
30 #end if
|
|
31 #end if
|
|
32
|
|
33 #if $wigsum.wigsum_type
|
|
34 -t $wigsum.totalwig
|
|
35 #end if
|
|
36
|
|
37 #if $skipmultihits
|
|
38 -u
|
|
39 #end if
|
|
40 </command>
|
|
41 <inputs>
|
|
42 <param name="input" type="data" label="Input .bam File" format="bam" />
|
|
43 <param name="chromsize" type="data" label="Chromosome size file (tab or space separated)" format="txt,tabular" />
|
|
44 <param name="skipmultihits" type="boolean" label="Skip Multiple Hit Reads/Only Use Uniquely Mapped Reads" value="false" />
|
|
45 <conditional name="wigsum">
|
|
46 <param name="wigsum_type" type="boolean" label="Specify wigsum?" value="false">
|
|
47 </param>
|
|
48 <when value="true">
|
|
49 <param name="totalwig" value="0" type="integer" label="specified wigsum" />
|
|
50 </when>
|
|
51 <when value="false"></when>
|
|
52 </conditional>
|
|
53 <conditional name="strand_type">
|
|
54 <param name="strand_specific" type="select" label="Strand-specific?" value="none">
|
|
55 <option value="none">none</option>
|
|
56 <option value="pair">Pair-End RNA-seq</option>
|
|
57 <option value="single">Single-End RNA-seq</option>
|
|
58 </param>
|
|
59 <when value="pair">
|
|
60 <param name="pair_type" type="select" display="radio" label="Pair-End Read Type (format: mapped --> parent)" value="sd">
|
|
61 <option value="sd"> read1 (positive --> positive; negative --> negative), read2 (positive --> negative; negative --> positive)</option>
|
|
62 <option value="ds">read1 (positive --> negative; negative --> positive), read2 (positive --> positive; negative --> negative)</option>
|
|
63 </param>
|
|
64 </when>
|
|
65 <when value="single">
|
|
66 <param name="single_type" type="select" display="radio" label="Single-End Read Type (format: mapped --> parent)" value="s">
|
|
67 <option value="s">positive --> positive; negative --> negative</option>
|
|
68 <option value="d">positive --> negative; negative --> positive</option>
|
|
69 </param>
|
|
70 </when>
|
|
71 <when value="none"></when>
|
|
72 </conditional>
|
|
73 </inputs>
|
|
74 <outputs>
|
|
75 <data format="wig" name="output" from_work_dir="outfile.wig">
|
|
76 <filter>strand_type['strand_specific'] == 'none'</filter>
|
|
77 </data>
|
31
|
78 <data format="wig" name="outputfwd" from_work_dir="outfile_Forward.wig" label="${tool.name} on ${on_string} (Forward Reads)">
|
29
|
79 <filter>strand_type['strand_specific'] != 'none'</filter>
|
|
80 </data>
|
31
|
81 <data format="wig" name="outputrv" from_work_dir="outfile_Reverse.wig" label="${tool.name} on ${on_string} (Reverse Reads)">
|
29
|
82 <filter>strand_type['strand_specific'] != 'none'</filter>
|
|
83 </data>
|
|
84 </outputs>
|
31
|
85 <stdio>
|
|
86 <exit_code range="1:" level="fatal" description="An error occured during execution, see stderr and stdout for more information" />
|
|
87 <regex match="[Ee]rror" source="both" description="An error occured during execution, see stderr and stdout for more information" />
|
|
88 </stdio>
|
29
|
89 <help>
|
31
|
90 bam2wig.py
|
|
91 ++++++++++
|
29
|
92
|
31
|
93 Visualization is the most straightforward and effective way to QC your RNA-seq
|
|
94 data. For example, change of expression or new splicing can be easily checked
|
|
95 by visually comparing two RNA-seq tracks using genome browser such as UCSC_,
|
|
96 IGB_ and IGV_. `bam2wig.py` converts all types of RNA-seq data from BAM_
|
|
97 format into wiggle_ format in one-stop. wiggle_ files can then be easily
|
|
98 converted into bigwig_. Bigwig is indexed, binary format of wiggle file, and
|
|
99 it's particular useful to display large, continuous dataset on genome
|
|
100 browser.
|
29
|
101
|
|
102 Inputs
|
|
103 ++++++++++++++
|
|
104
|
|
105 Input BAM file
|
|
106 Alignment file in BAM format (SAM is not supported). BAM file will be sorted and indexed using samTools.
|
|
107
|
|
108 Chromosome size file
|
|
109 Tab or space separated text file with 2 columns: first column is chromosome name, second column is size of the chromosome. Chromosome names (such as "chr1") should be consistent between this file and BAM file.
|
|
110
|
|
111 Specified wigsum (default=none)
|
|
112 Specified wigsum. Wigsum of 100000000 equals to coverage achieved by 1 million 100nt reads. Ignore this option to disable normalization.
|
|
113
|
|
114 Skip multiple Hit reads
|
|
115 skips multiple hit reads or only use uniquely mapped reads
|
|
116
|
|
117 Strand-specific (default=none)
|
|
118 How read(s) were stranded during sequencing. If you are not sure about the strand rule, run infer_experiment.py
|
|
119
|
|
120 Outputs
|
|
121 ++++++++++++++
|
|
122
|
|
123 If RNA-seq is not strand specific, one wig file will be generated, if RNA-seq
|
|
124 is strand specific, two wig files corresponding to Forward and Reverse will be generated.
|
|
125
|
31
|
126 -----
|
|
127
|
|
128 About RSeQC
|
|
129 +++++++++++
|
|
130
|
|
131
|
|
132 The RSeQC_ package provides a number of useful modules that can comprehensively evaluate high throughput sequence data especially RNA-seq data. "Basic modules" quickly inspect sequence quality, nucleotide composition bias, PCR bias and GC bias, while "RNA-seq specific modules" investigate sequencing saturation status of both splicing junction detection and expression estimation, mapped reads clipping profile, mapped reads distribution, coverage uniformity over gene body, reproducibility, strand specificity and splice junction annotation.
|
|
133
|
|
134 The RSeQC package is licensed under the GNU GPL v3 license.
|
|
135
|
|
136 .. image:: http://rseqc.sourceforge.net/_static/logo.png
|
|
137
|
|
138 .. _RSeQC: http://rseqc.sourceforge.net/
|
|
139 .. _UCSC: http://genome.ucsc.edu/index.html
|
|
140 .. _IGB: http://bioviz.org/igb/
|
|
141 .. _IGV: http://www.broadinstitute.org/igv/home
|
|
142 .. _BAM: http://genome.ucsc.edu/goldenPath/help/bam.html
|
|
143 .. _wiggle: http://genome.ucsc.edu/goldenPath/help/wiggle.html
|
|
144 .. _bigwig: http://genome.ucsc.edu/FAQ/FAQformat.html#format6.1
|
29
|
145
|
|
146 </help>
|
31
|
147 </tool>
|