0
|
1 <tool id="bam_to_bigwig" name="BAM to BigWig" version="0.1">
|
|
2 <description>Calculates coverage from a BAM alignment file</description>
|
|
3 <requirements>
|
|
4 <requirement type="binary">genomeCoverageBed</requirement>
|
|
5 <requirement type="binary">bedGraphToBigWig</requirement>
|
|
6 </requirements>
|
|
7 <command>
|
|
8 genomeCoverageBed -ibam $align -bg $split -g
|
|
9 `awk '($0 !~ /^#.*/) && ($2 == "$align.dbkey") {print $3}' ${GALAXY_DATA_INDEX_DIR}/sam_fa_indices.loc`.fai
|
|
10 > tmp.bedgraph;
|
|
11 bedGraphToBigWig tmp.bedgraph
|
|
12 `awk '($0 !~ /^#.*/) && ($2 == "$align.dbkey") {print $3}' ${GALAXY_DATA_INDEX_DIR}/sam_fa_indices.loc`.fai
|
|
13 $out;
|
|
14 </command>
|
|
15 <inputs>
|
|
16 <param name="align" type="data" format="bam" label="Select the BAM file to generate the pileup file for">
|
|
17 <validator type="unspecified_build" />
|
|
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" />
|
|
19 </param>
|
|
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 "N" and "D" operations to infer the blocks for computing coverage." truevalue="-split" falsevalue="" />
|
|
21 </inputs>
|
|
22 <outputs>
|
|
23 <data format="bigwig" name="out" />
|
|
24 </outputs>
|
|
25
|
|
26 <help>
|
|
27 **What it does**
|
|
28
|
|
29 Creates a coverage file in BigWig format, given a BAM alignment file.
|
|
30
|
|
31 **Input**
|
|
32
|
|
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.
|
|
34
|
|
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.
|
|
36
|
|
37 **Output**
|
|
38
|
|
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.
|
|
40 </help>
|
|
41
|
|
42 </tool>
|