Bio::Graphics::Glyph::wiggle_density - A density plot compatible with dense "wig"data

- NAME
- SYNOPSIS
- DESCRIPTION

- OPTIONS
- SPECIAL FEATURE TAGS

- BUGS
- SEE ALSO
- AUTHOR

# NAME

Bio::Graphics::Glyph::wiggle_density - A density plot compatible with dense "wig"data

Back to Top

# SYNOPSIS

      See <Bio::Graphics::Panel> and <Bio::Graphics::Glyph>.

Back to Top

# DESCRIPTION

This glyph works like the regular density but takes value data in Bio::Graphics::Wiggle file format:

     reference = chr1
     ChipCHIP Feature1 1..10000 wigfile=./test.wig;wigstart=0
     ChipCHIP Feature2 10001..20000 wigfile=./test.wig;wigstart=656
     ChipCHIP Feature3 25001..35000 wigfile=./test.wig;wigstart=1312

The "wigfile" attribute gives a relative or absolute pathname to a Bio::Graphics::Wiggle format file. The optional "wigstart" option gives the offset to the start of the data. If not specified, a linear search will be used to find the data. The data consist of a packed binary representation of the values in the feature, using a constant step such as present in tiling array data.

## OPTIONS

The same as the regular graded_segments glyph, except that the following options are recognized:

       Name        Value        Description
       ----        -----        -----------

       basedir     path         Path to be used to resolve "wigfile" and "densefile"
                                    tags giving relative paths. Default is to use the
                                    current working directory. Absolute wigfile &
                                    densefile paths will not be changed.

       autoscale   "local" or "global"
                                 If one or more of min_score and max_score options
                                 are absent, then these values will be calculated
                                 automatically. The "autoscale" option controls how
                                 the calculation is done. The "local" value will
                                 scale values according to the minimum and maximum
                                 values present in the window being graphed. "global"
                                 will use chromosome-wide statistics for the entire
                                 wiggle or dense file to find min and max values.

       smoothing   method name  Smoothing method: one of "mean", "max", "min" or "none"

       smoothing_window
                   integer      Number of values across which data should be smoothed.

       bicolor_pivot
                   name         Where to pivot the two colors when drawing bicolor plots.
                                   Options are "mean" and "zero". A numeric value can
                                   also be provided.

       pos_color   color        When drawing bicolor plots, the fill color to use for values
                                  that are above the pivot point.

       neg_color   color        When drawing bicolor plots, the fill color to use for values
                                  that are below the pivot point.

## SPECIAL FEATURE TAGS

The glyph expects one or more of the following tags (attributes) in feature it renders:

       Name        Value        Description
       ----        -----        -----------

       wigfile     path name    Path to the Bio::Graphics::Wiggle file for vales.
                                (required)

       densefile   path name    Path to a Bio::Graphics::DenseFeature object
                                   (deprecated)

       denseoffset integer      Integer offset to where the data begins in the
                                   Bio::Graphics::DenseFeature file (deprecated)

       densesize   integer      Integer size of the data in the Bio::Graphics::DenseFeature
                                   file (deprecated)

Back to Top

# BUGS

Please report them.

Back to Top

# SEE ALSO

the Bio::Graphics::Panel manpage, the Bio::Graphics::Glyph manpage, the Bio::Graphics::Glyph::arrow manpage, the Bio::Graphics::Glyph::cds manpage, the Bio::Graphics::Glyph::crossbox manpage, the Bio::Graphics::Glyph::diamond manpage, the Bio::Graphics::Glyph::dna manpage, the Bio::Graphics::Glyph::dot manpage, the Bio::Graphics::Glyph::ellipse manpage, the Bio::Graphics::Glyph::extending_arrow manpage, the Bio::Graphics::Glyph::generic manpage, the Bio::Graphics::Glyph::graded_segments manpage, the Bio::Graphics::Glyph::heterogeneous_segments manpage, the Bio::Graphics::Glyph::line manpage, the Bio::Graphics::Glyph::pinsertion manpage, the Bio::Graphics::Glyph::primers manpage, the Bio::Graphics::Glyph::rndrect manpage, the Bio::Graphics::Glyph::segments manpage, the Bio::Graphics::Glyph::ruler_arrow manpage, the Bio::Graphics::Glyph::toomany manpage, the Bio::Graphics::Glyph::transcript manpage, the Bio::Graphics::Glyph::transcript2 manpage, the Bio::Graphics::Glyph::translation manpage, the Bio::Graphics::Glyph::allele_tower manpage, the Bio::DB::GFF manpage, the Bio::SeqI manpage, the Bio::SeqFeatureI manpage, the Bio::Das manpage, GD

Back to Top

# AUTHOR

Lincoln Stein <steinl@cshl.edu>.

Copyright (c) 2007 Cold Spring Harbor Laboratory

This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty.

Back to Top

Bio::Graphics::Glyph::wiggle_density - A density plot compatible with dense "wig"data