view galaxy-conf/Downsample.xml @ 20:9d56b5b85740 draft

Reuploaded to see if tools get loaded correctly this time.
author timpalpant
date Fri, 15 Jun 2012 15:10:26 -0400
parents
children b43c420a6135
line wrap: on
line source

<tool id="WigDownsample" name="Downsample" version="1.1.0">
  <description>a (Big)Wig file</description>
  <command interpreter="sh">galaxyToolRunner.sh wigmath.Downsample -i $input -m $metric -w $window -o $output</command>
  <inputs>
      <param format="bigwig,wig" name="input" type="data" label="Original data" />
      <param name="window" type="integer" value="100" label="Window size (bp)" />
      <param name="metric" type="select" label="Downsampling method">
      	<option value="mean">Mean</option>
      	<option value="min">Minimum</option>
      	<option value="max">Maximum</option>
      	<option value="coverage">Coverage</option>
      	<option value="total">Total</option>
      </param>
  </inputs>
  <outputs>
      <data format="wig" name="output" metadata_source="input" />
  </outputs>
  
  <tests>
      <test>
	    <param name="input" value="wigmath1.wig"/>
	    <param name="window" value="1"/>
	    <param name="metric" value="mean"/>
	    <output name="output" file="downsample1.wig"/>
	  </test>
	  <test>
	    <param name="input" value="wigmath2.bw"/>
	    <param name="window" value="5"/>
	    <param name="metric" value="max"/>
	    <output name="output" file="downsample2.wig"/>
	  </test>
	  <test>
	    <param name="input" value="wigmath3.wig"/>
	    <param name="window" value="100"/>
	    <param name="metric" value="total"/>
	    <output name="output" file="downsample3.wig"/>
	  </test>
  </tests>
  
  <help>

This tool can be used to reduce the resolution and file size of Wig files for easier upload to UCSC. Data is downsampled in non-overlapping windows starting from the beginning of each chromosome. Each window can be downsampled as the mean, minimum, maximum, total, or coverage of the original data.

-----

**Downsampling Methods**

- **Mean:** the arithmetic mean of the values in the original data window
- **Minimum:** the least value in the original data window
- **Maximum:** the greatest value in the original data window
- **Coverage:** the fraction of bases with values in the original window
- **Total:** the sum of all values in the original data window

-----

.. class:: infomark

**TIP:** If your dataset does not appear in the pulldown menu, it means that it is not in Wig or BigWig format. Use "edit attributes" to set the correct format if it was not detected correctly.

  </help>
</tool>