view bam2wig.xml @ 2:4d701c67592a

author nilesh
date Mon, 08 Jul 2013 22:03:50 -0400
parents e73f30d518f9
line wrap: on
line source

<tool id="bam2wig" name="BAM to Wiggle">
		converts all types of RNA-seq data from .bam to .wig 
		<requirement type="package" version="2.15.1">R</requirement>
		<requirement type="package" version="0.1.18">samtools</requirement>
		<requirement type="package" version="2.3.7">rseqc</requirement>
	<command interpreter="python"> /home/nilesh/RSeQC-2.3.3/scripts/ -i $input -s $chromsize -o outfile

		#if str($strand_type.strand_specific) == "pair"
			#if str($strand_type.pair_type) == "sd"
			#end if
		#end if

		#if str($strand_type.strand_specific) == "single"
			#if str($strand_type.single_type) == "s"
			#end if
		#end if

		#if $wigsum.wigsum_type
			-t $wigsum.totalwig
		#end if

		#if $skipmultihits
		#end if
		<param name="input" type="data" label="Input .bam File" format="bam" />
		<param name="chromsize" type="data" label="Chromosome size file (tab or space separated)" format="txt,tabular" />
		<param name="skipmultihits" type="boolean" label="Skip Multiple Hit Reads/Only Use Uniquely Mapped Reads" value="false" />
		<conditional name="wigsum">
			<param name="wigsum_type" type="boolean" label="Specify wigsum?" value="false">
			<when value="true">
				<param name="totalwig" value="0" type="integer" label="specified wigsum" />
			<when value="false"></when>
		<conditional name="strand_type">
			<param name="strand_specific" type="select" label="Strand-specific?" value="None">
				<option value="none">None</option>
				<option value="pair">Pair-End RNA-seq</option>
				<option value="single">Single-End RNA-seq</option>
			<when value="pair">
				<param name="pair_type" type="select" display="radio" label="Pair-End Read Type (format: mapped --> parent)" value="sd">
					<option value="sd"> read1 (positive --> positive; negative --> negative), read2 (positive --> negative; negative --> positive)</option>
					<option value="ds">read1 (positive --> negative; negative --> positive), read2 (positive --> positive; negative --> negative)</option>
			<when value="single">
				<param name="single_type" type="select" display="radio" label="Single-End Read Type (format: mapped --> parent)" value="s">
					<option value="s">positive --> positive; negative --> negative</option>
					<option value="d">positive --> negative; negative --> positive</option>
			<when value="none"></when>
		<data format="wig" name="output" from_work_dir="outfile.wig">
			<filter>strand_type['strand_specific'] == 'none'</filter>
		<data format="wig" name="outputfwd" from_work_dir="outfile_Forward.wig">
			<filter>strand_type['strand_specific'] != 'none'</filter>
		<data format="wig" name="outputrv" from_work_dir="outfile_Reverse.wig">
			<filter>strand_type['strand_specific'] != 'none'</filter>
.. image::


About RSeQC

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.

The RSeQC package is licensed under the GNU GPL v3 license.


Input BAM file
	Alignment file in BAM format (SAM is not supported). BAM file will be sorted and indexed using samTools.

Chromosome size file
	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.

Specified wigsum (default=none)
	Specified wigsum. Wigsum of 100000000 equals to coverage achieved by 1 million 100nt reads. Ignore this option to disable normalization.

Skip multiple Hit reads
	skips multiple hit reads or only use uniquely mapped reads

Strand-specific (default=none)
	How read(s) were stranded during sequencing. If you are not sure about the strand rule, run


If RNA-seq is not strand specific, one wig file will be generated, if RNA-seq
is strand specific, two wig files corresponding to Forward and Reverse will be generated.