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