Mercurial > repos > vipints > fml_wig2bed
view Wig_to_bedGraph/galaxy/Wig2bedGraph.xml @ 0:45f3fa82369f default tip
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
author | vipints |
---|---|
date | Tue, 07 Jun 2011 18:08:31 -0400 |
parents | |
children |
line wrap: on
line source
<tool id="fml_wig2bed" name="Wig_to_bedGraph" version="1.0.0"> <description>converter</description> <command interpreter="perl">wig2bedGraph_converter.pl $inf_wig > $bed_format </command> <inputs> <param format="wig" name="inf_wig" type="data" label="Convert this file" help="Data in fixedStep or variableStep wiggle format."/> </inputs> <outputs> <data format="bed" name="bed_format" /> </outputs> <tests> <test> <param name="inf_wig" value="hg17_chrY_pos.wig" /> <output name="bed_format" file="hg17_chrY_pos.bed" /> </test> </tests> <help> **What it does** This tool converts data in wiggle fixedStep_ or variableStep_ format to four column bedGraph_ format. .. _fixedStep: http://genome.ucsc.edu/goldenPath/help/wiggle.html .. _variableStep: http://genome.ucsc.edu/goldenPath/help/wiggle.html .. _bedGraph: http://genome.ucsc.edu/goldenPath/help/bedgraph.html -------- **Example** - The following data in wiggle fixedStep format:: track type=wiggle_0 name="ARTS+ chrY" description="ARTS - TSS Finder - chrY - positive strand" visibility=full autoScale=on color=0,200,100 maxHeightPixels=300:150:50 graphType=bar yLineMark=0 yLineOnOff=on smoothingWindow=2 fixedStep chrom=chrY start=1151 step=50 -1.17966 -0.56397 -0.79706 -0.99435 -1.11338 -1.23153 - Will be converted to bedGraph format:: chrY 1150 1151 -1.17966 chrY 1200 1201 -0.56397 chrY 1250 1251 -0.79706 chrY 1300 1301 -0.99435 chrY 1350 1351 -1.11338 chrY 1400 1401 -1.23153 -------- **About formats** **Wiggle (variableStep)** The data is introduced by a line beginning with the keyword "variableStep", and the arguments "chrom" and "span", which indicate the chromosome on which the features are located, and the width of each feature, in base pairs. This is followed by a series of two-element lines indicating the start position of each feature, and its quantitative value. Values can be any sort of numeric data, including integers, negative numbers and floating point. **Wiggle (fixedStep)** The data is introduced by a line beginning with the keyword "fixedStep", and the arguments "chrom", "span", "start" and "step". The first two arguments are the same as wiggle variableStep, while "start" and "step" indicate the starting position of the first feature, and the spacing between each feature. This is followed by a numeric value for each step. **bedGraph** There are four required fields: ref_sequence,start,end and score. Note that here the coordinates are "zero-indexed", half open, which means the start coordinate is zero-indexed and the end coordinate is 1-indexed. -------- This tool is a part of the **MLB Group at Friedrich Miescher Laboratory of the Max Planck Society**. Copyright (C) 2010-2011 Max Planck Society </help> </tool>