annotate bam_to_bigwig.xml @ 1:2e812b4f91ce draft default tip

planemo upload commit 250051c3d660df43da92c76913552767ce142a45-dirty
author yating-l
date Tue, 30 May 2017 18:18:20 -0400
parents 61f39c77b13d
children
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;
1
2e812b4f91ce planemo upload commit 250051c3d660df43da92c76913552767ce142a45-dirty
yating-l
parents: 0
diff changeset
12 bedtools genomecov -bg -split -ibam $input_bam -g chrom.sizes
2e812b4f91ce planemo upload commit 250051c3d660df43da92c76913552767ce142a45-dirty
yating-l
parents: 0
diff changeset
13 | LC_COLLATE=C sort -k1,1 -k2,2n
2e812b4f91ce planemo upload commit 250051c3d660df43da92c76913552767ce142a45-dirty
yating-l
parents: 0
diff changeset
14 > temp.bg &&
0
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
15 bedGraphToBigWig temp.bg chrom.sizes $output_bigwig;
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
16 ]]></command>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
17 <inputs>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
18 <param format="bam" name="input_bam" type="data" label="Choose BAM file" />
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
19 <param format="fasta" name="input_reference_fasta"
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
20 type="data" label="Choose Reference Genome (Fasta)" />
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
21 </inputs>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
22 <outputs>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
23 <data format="bigwig" name="output_bigwig" />
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
24 </outputs>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
25 <help>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
26 This tool converts a Bam file to a BigWig file.
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
27
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
28 It needs:
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
29 - A Bam file
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
30 - The reference genome as a Fasta file
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
31 </help>
61f39c77b13d planemo upload commit 250051c3d660df43da92c76913552767ce142a45
yating-l
parents:
diff changeset
32 </tool>