Bio::G...ensity(3pm)

πŸ“¦
version 2.40 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

Bio::Graphics::Glyph::wiggle_density β€” a density plot that's BFFs with dense wig data 🧬✨

Okay so real talk, this lives in the Bio::Graphics::Glyph::wiggle_density package, it's a Perl module (3pm, iykyk), and it's part of the User Contributed Perl Documentation. Slay.


✨ SYNOPSIS ✨

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

That's it bestie, that's the whole synopsis. Go read those two, they're the blueprint. 🫢


🌸 DESCRIPTION 🌸

So this glyph does the exact same thing as the regular density glyph, but it eats its value data in Bio::Graphics::Wiggle file format. Like:

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 is literally just a relative or absolute pathname pointing at a Bio::Graphics::Wiggle format file. Iconic.

The optional wigstart option hands over the offset to the start of the data. And if you don't give it one? It'll do a linear search to find your data. No cap. The data itself is a packed binary representation of the values in the feature, using a constant step β€” exactly like the vibe you get in tiling array data. 🧚

πŸŽ€ OPTIONS πŸŽ€

Same as the regular graded_segments glyph, except these specific ones get recognized:

  • basedir β€” path. The path used to resolve wigfile and densefile tags that give 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 the min_score and max_score options are missing, then those values get calculated automatically. This option controls how that calculation goes down. "local" scales values according to the min and max values present in the window being graphed. "global" uses chromosome-wide statistics across the entire wiggle or dense file to find min and max. Choose wisely bestie. πŸ‘‘
  • smoothing β€” method name. Smoothing method: one of "mean", "max", "min" or "none". ✨
  • smoothing_window β€” integer. Number of values across which the 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 these tags (attributes) in the feature it renders:

  • wigfile β€” path name. Path to the Bio::Graphics::Wiggle file for vales. (required) β€” yes, "vales", that's a typo in the original and I am respectfully preserving it, periodt. 😭
  • 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) πŸ’€
Heads up: densefile, denseoffset and densesize are all marked deprecated. Don't come for me, I'm just the messenger. πŸ™ˆ

πŸ› BUGS πŸ›

Please report them. (Short, sweet, and honestly a mood. Go tell somebody, bestie. 🫢)


πŸ‘€ SEE ALSO πŸ‘€

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

That's the whole squad. Go read them all, they're all iconic. πŸ’…βœ¨


πŸ’Œ 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. 🫢


and that's a wrap, bestie πŸ’– this was perl v5.30.0, dated 2019-11-25, and it lives in Bio::G...ensity(3pm) under User Contributed Perl Documentation. stay hydrated, go plot something gorgeous 🌸✨

πŸ“¦ where this page comes from