annotate bam_to_bigwig.xml @ 4:3112c78841c5

Another attempt to organize files to appease Galaxy Tools Shed
author Lance Parsons <lparsons@princeton.edu>
date Wed, 24 Aug 2011 14:45:29 -0400
parents b8525303b945
children 5b40b93ebae3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
1 <tool id="bam_to_bigwig" name="BAM to BigWig" version="0.1">
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
2 <description>Calculates coverage from a BAM alignment file</description>
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
3 <requirements>
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
4 <requirement type="binary">genomeCoverageBed</requirement>
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
5 <requirement type="binary">bedGraphToBigWig</requirement>
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
6 </requirements>
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
7 <command>
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
8 genomeCoverageBed -ibam $align -bg $split -g
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
9 `awk '($0 !~ /^#.*/) &amp;&amp; ($2 == "$align.dbkey") {print $3}' ${GALAXY_DATA_INDEX_DIR}/sam_fa_indices.loc`.fai
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
10 > tmp.bedgraph;
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
11 bedGraphToBigWig tmp.bedgraph
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
12 `awk '($0 !~ /^#.*/) &amp;&amp; ($2 == "$align.dbkey") {print $3}' ${GALAXY_DATA_INDEX_DIR}/sam_fa_indices.loc`.fai
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
13 $out;
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
14 </command>
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
15 <inputs>
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
16 <param name="align" type="data" format="bam" label="Select the BAM file to generate the pileup file for">
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
17 <validator type="unspecified_build" />
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
18 <validator type="dataset_metadata_in_file" filename="sam_fa_indices.loc" metadata_name="dbkey" metadata_column="1" message="Sequences are not currently available for the specified build." line_startswith="index" />
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
19 </param>
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
20 <param name="split" type="boolean" value="false" label="Separate split reads" help="Do not use gaps when computing coverage. This is recommended for RNA-Seq where reads are mapped across long splice junctions. Uses the CIGAR &quot;N&quot; and &quot;D&quot; operations to infer the blocks for computing coverage." truevalue="-split" falsevalue="" />
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
21 </inputs>
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
22 <outputs>
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
23 <data format="bigwig" name="out" />
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
24 </outputs>
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
25
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
26 <help>
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
27 **What it does**
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
28
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
29 Creates a coverage file in BigWig format, given a BAM alignment file.
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
30
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
31 **Input**
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
32
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
33 A BAM alignment file. This needs to have the genome database build used in alignment annotated. If your file has '?' for the database build, click on the pencil icon to edit the alignment attributes, and specify the organism used to align against.
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
34
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
35 The BAM file must also be sorted. If you generated the BAM file in Galaxy, this will be true, however, if you uploaded the file, you must make sure it was sorted.
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
36
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
37 **Output**
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
38
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
39 BigWig files can be loaded directly from Galaxy into the UCSC browser. They can be loaded incrementally by UCSC, so a single file can be used to represent the entire genome without having to upload the entire thing as a custom track.
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
40 </help>
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
41
b4f96d5456b3 Uploaded initial version
lparsons
parents:
diff changeset
42 </tool>