Bio::G...id_plot(3pm)
β¨ Bio::G...id_plot(3pm) β¨
okay bestie, welcome to Bio::G...id_plot(3pm) β the manual page that's about to make your wiggle plots absolutely iconic π if you're here, you're probably staring down a dual-graph situation and you need someone to explain it like a friend, so let's GO.
πΈ NAME πΈ
Bio::Graphics::Glyph::hybrid_plot β it's an xyplot plot that draws a dual graph using data from two or more wiggle files per track. yes, two graphs. one track. main character energy fr fr π
π¦ SYNOPSIS π¦
See Bio::Graphics::Panel, Bio::Graphics::Glyph and Bio::Graphics::Glyph::wiggle_xyplot. that's the whole synopsis, she's short and she knows it π
β¨ DESCRIPTION β¨
okay so first things first, and this is important: for full functionality, this glyph requires Bio::Graphics::Glyph::generic. why? because the generic glyph is the one drawing your individual matches for small RNA alignments when you're zoomed all the way in β the high zoom level is specified by semantic zooming in your GBrowse conf file. so like, don't skip that part, it's not optional π
Unlike the regular xyplot, this glyph draws two overlapping graphs using value data in Bio::Graphics::Wiggle file format. like so:
track type=wiggle_0 name="Experiment" description="snRNA seq data"
visibility=pack viewLimits=-2:2 color=255,0,0 altColor=0,0,255
windowingFunction=mean smoothingWindow=16
2L 400 500 0.5
2L 501 600 0.5
2L 601 700 0.4
2L 701 800 0.1
2L 800 900 0.1
and then, GFF time:
##gff-version 3
2L Sample_rnaseq rnaseq_wiggle 41 3009 . . .
ID=Samlpe_2L;Name=Sample;Note=YourNoteHere;wigfileA=/datadir/track_001.2L.wig;wigfileB=/datadir/track_002.2L.wig
so the wigfileA and wigfileB attributes? they hand over a relative or absolute pathname to Bio::Graphics::Wiggle format files, for two concurrent sets of data. basically these wigfiles are carrying the data on signal intensity (counts) for sequences aligned with genomic regions. π§¬
now here's the vibe difference, and it's the whole point:
- in
wigfileAthe data are additive β so for each sequence region, the signal is calculated as a sum of signals from overlapping matches (signal). - in
wigfileBthe signal represents the maximum value among all sequences (signal quality) aligned with the current region.
and why do you care? because this lets you actually see the difference between accumulated signal from overlapping multiple matches (which may likely be just a noise from products of degradation π) and high-quality signal from unique sequences. lowkey genius.
want a third wiggle file? use the attribute wigfileC and so forth. keep going, bestie, the alphabet is right there π
β οΈ It is essential that wigfile entries in gff file do not have score, because score is used to differentiate between data for dual graph and data for matches (individual features visible at higher magnification). like, do not put a score there. do not.
After an update to wiggle_xyplot code, colors for the dual plot are now hard-coded (blue for signal and orange for signal quality). Alpha channel is also handled by wiggle_xyplot code now. so you don't get to pick, and honestly? she ate. π
π OPTIONS π
In addition to some of the wiggle_xyplot glyph options, the following options are recognized:
wigfileA(path name) β Path to aBio::Graphics::Wigglefile for accumulated vales in 10-base bins πwigfileB(path name) β Path to aBio::Graphics::Wigglefile for max values in 10-base bins πfasta(path name) β Path to fasta file to enable BigWig drawing π§u_method(method name) β Use method of[method name]to identify individual features (like alignment matches) to show at high zoom level. By default it is set to'match'π
π BUGS π
Please report them. that's it, that's the bug policy. no notes, just report them π«Ά
π 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. the whole friend group showed up, we love to see it π
π AUTHOR π
Peter Ruzanov <pruzanov@oicr.on.ca>.
Copyright (c) 2008 Ontario Institute for Cancer Research.
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 the whole page, bestie β perl v5.30.0, dated 2019-11-25, and yeah, that footer still says Bio::G...id_plot(3pm) because she keeps it mysterious π
β¨ now go plot something gorgeous π¦
π¦ where this page comes from
- debian bookworm: libbio-graphics-perl 2.40-6 Β· Perl
- debian trixie: libbio-graphics-perl 2.40-6 Β· Perl
- ubuntu jammy: libbio-graphics-perl 2.40-6 Β· Perl
- ubuntu noble: libbio-graphics-perl 2.40-6 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms