annotate bam_to_bigwig.xml @ 0:61f39c77b13d draft

planemo upload commit 250051c3d660df43da92c76913552767ce142a45
author yating-l
date Wed, 12 Apr 2017 17:52:09 -0400
parents
children 2e812b4f91ce
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
1 <tool id="bam_to_bigwig" name="Convert Bam to BigWig" version="0.1.0">
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
2 <requirements>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
3 <requirement type="package" version="1.0">ucsc_tools_340</requirement>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
4 <requirement type="package" version="2.24">bedtools</requirement>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
5 </requirements>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
6 <stdio>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
7 <exit_code range="1:" />
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
8 </stdio>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
9 <command><![CDATA[
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
10 faToTwoBit $input_reference_fasta two_bit.2bit;
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
11 twoBitInfo two_bit.2bit stdout | sort -k2nr > chrom.sizes;
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
12 bedtools genomecov -bg -split -ibam $input_bam -g chrom.sizes > temp.bg;
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
13 bedGraphToBigWig temp.bg chrom.sizes $output_bigwig;
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
14 ]]></command>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
15 <inputs>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
16 <param format="bam" name="input_bam" type="data" label="Choose BAM file" />
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
17 <param format="fasta" name="input_reference_fasta"
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
18 type="data" label="Choose Reference Genome (Fasta)" />
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
19 </inputs>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
20 <outputs>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
21 <data format="bigwig" name="output_bigwig" />
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
22 </outputs>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
23 <help>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
24 This tool converts a Bam file to a BigWig file.
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
25
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
26 It needs:
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
27 - A Bam file
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
28 - The reference genome as a Fasta file
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
29 </help>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
30 </tool>