Skip to the content.

Bio::ToolBox - manipulate_wig

Home Install Libraries Applications Examples FAQ

manipulate_wig.pl

A progam to manipulate wiggle files.

SYNOPSIS

manipulate_wig.pl [options] -i <file1.wig> -o <file1.out.wig>

File Options: 
-i --in <file>            Input file. Accepts 'stdin'.
-o --out <file>           Output file. Accepts 'stdout'.

Selection functions:
-k --skip <regex>         Skip lines where chromosomes match regex 
-y --apply <regex>        Only apply manipulations to matching chromosomes 

Manipulation functions (in order of execution):
-u --null                 Convert null, NA, N/A, NaN, inf values to 0
-d --delog [2|10]         Delog values of given base 
-b --abs                  Convert to the absolute value 
-m --mult <float>         Multiply score by the given value
-a --add <float>          Add the given value to the score
-l --log [2|10]           Convert to log2 or log10. 
-n --min <float>          Set the minimum score
-x --max <float>          Set the maximum score
-p --place <int>          Format score to decimal positions
-z --zero                 Discard lines with zero values

BigWig support:
--chromo <file>           Chromosome sizes file for writing bigWig
--db <file>               Indexed file to obtain chromosome info
--bw2w <path>             Path to UCSC bigWigToWig utility
--w2bw <path>             Path to UCSC wigToBigWig utility

General functions:
-t --stats                Calculate statistics 
-v --version              print version and exit
-h --help                 show extended documentation

OPTIONS

The command line flags and descriptions:

File options

Selection functions

Manipulation functions

BigWig support

General functions

DESCRIPTION

A program to manipulate the score value of wig files. This will process all forms of text based wig files, including fixedStep, variableStep, and bedGraph. Files may be gzip compressed. BigWig files are also transparently supported as both input and output, provided that the appropriate UCSC utility files are available.

NOTE: More than one option may be specified! The options above are the order in which the score is manipulated. If they are not in the order you want, you may have to pipe to sequential instances. Use ‘stdin’ and ‘stdout’ for filenames.

AUTHOR

Timothy J. Parnell, PhD
Dept of Oncological Sciences
Huntsman Cancer Institute
University of Utah
Salt Lake City, UT, 84112

This package is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.