comparison bam_to_bigwig.xml @ 0:dd444ce346ae draft default tip

planemo upload commit 54155cb43a07d563ee6861c2410a167b9c879ff4-dirty
author rmarenco
date Thu, 14 Jul 2016 18:55:27 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:dd444ce346ae
1 <tool id="bam_to_bigwig" name="Convert Bam to BigWig" version="0.1.0">
2 <requirements>
3 <requirement type="package" version="312">ucsc_tools</requirement>
4 <requirement type="package" version="2.24">bedtools</requirement>
5 </requirements>
6 <stdio>
7 <exit_code range="1:" />
8 </stdio>
9 <command><![CDATA[
10 faToTwoBit $input_reference_fasta two_bit.2bit;
11 twoBitInfo two_bit.2bit stdout | sort -k2nr > chrom.sizes;
12 bedtools genomecov -bg -split -ibam $input_bam -g chrom.sizes > temp.bg;
13 bedGraphToBigWig temp.bg chrom.sizes $output_bigwig;
14 ]]></command>
15 <inputs>
16 <param format="bam" name="input_bam" type="data" label="Choose BAM file" />
17 <param format="fasta" name="input_reference_fasta"
18 type="data" label="Choose Reference Genome (Fasta)" />
19 </inputs>
20 <outputs>
21 <data format="bigwig" name="output_bigwig" />
22 </outputs>
23 <help>
24 This tool converts a Bam file to a BigWig file.
25
26 It needs:
27 - A Bam file
28 - The reference genome as a Fasta file
29 </help>
30 </tool>