Bio::C...ngPair(3pm)
π Bio::C...ngPair(3pm) β User Contributed Perl Documentation π
okay bestie, welcome to Bio::C...ngPair(3pm) β yes that's the whole name, it's giving mysterious, the manual page name is literally truncated like that and we're just gonna roll with it β¨
πΈ NAME πΈ
Bio::Coordinate::ExtrapolatingPair β a continuous match between two coordinate sets. lowkey iconic.
β VERSION β
version 1.007001 β periodt, that's the one.
β¨ SYNOPSIS β¨
here's the vibe in code, copy it exactly bestie:
use Bio::Location::Simple;
use Bio::Coordinate::ExtrapolatingPair;
$match1 = Bio::Location::Simple->new
(-seq_id => 'propeptide', -start => 21, -end => 40, -strand=>1 );
$match2 = Bio::Location::Simple->new
(-seq_id => 'peptide', -start => 1, -end => 20, -strand=>1 );
$pair = Bio::Coordinate::ExtrapolatingPair->
new(-in => $match1,
-out => $match2,
-strict => 1
);
$pos = Bio::Location::Simple->new
(-start => 40, -end => 60, -strand=> 1 );
$res = $pair->map($pos);
$res->start eq 20;
$res->end eq 20;
like. it maps. it slays. that's the whole thing π«Ά
π¦ DESCRIPTION π¦
so this class represents one continuous match between two coordinate systems, and those coordinate systems are represented by Bio::Location::Simple objects. the relationship is directed and reversible. it's got methods that keep the internal consistency in check, and it maps continuous and split locations from one coordinate system over to the other. very much main character energy π
this class is an elaboration of Bio::Coordinate::Pair. the map function returns only matches, which β no cap β is the mode you need most of the time. by default, the matching regions between the coordinate systems are boundless, so you can be like "okay the gene starts from here in the chromosomal coordinate system and then extends indefinitely in both directions" and that's just fine. but if you want your matching regions defined exactly, you can absolutely do that β just set strict() to true. your call, bestie π
π METHODS π
π new
it's the constructor. that's the entry. that's all the deets we got, no extra lore, respect the mystery π
π strict
Title : strict
Usage : $obj->strict(1);
Function: Set and read the strictness of the coordinate system.
Example :
Returns : value of input system
Args : boolean
set it, read it, live your truth. it's a boolean, it's giving strictness of the coordinate system πΈ
π map
Title : map
Usage : $newpos = $obj->map($loc);
Function: Map the location from the input coordinate system
to a new value in the output coordinate system.
In extrapolating coordinate system there is no location zero.
Locations are...
Example :
Returns : new location in the output coordinate system or undef
Args : Bio::Location::Simple
not the description literally trailing off mid-sentence π "Locations are..." bestie what ARE they. we may never know. anyway β takes a Bio::Location::Simple, gives you back a new location in the output coordinate system, or undef. and heads up: in the extrapolating coordinate system there is no location zero. no zero. it's not there. don't go looking π₯
π§ INTERNAL METHODS π§
π _map
Title : _map
Usage : $newpos = $obj->_map($simpleloc);
Function: Internal method that does the actual mapping. Called
multiple times by map() if the location to be mapped is a
split location
Example :
Returns : new location in the output coordinate system or undef
Args : Bio::Location::Simple
this is the internal one, the behind-the-scenes girlie doing the actual mapping. map() calls it multiple times whenever the location you're mapping is a split location. she's not for you, she's for the machinery, but we stan her anyway β¨
π FEEDBACK π
π Mailing lists
user feedback is an integral part of the evolution of this and other Bioperl modules β genuinely, it's a whole thing. send your comments and suggestions preferably to the Bioperl mailing list, and your participation is much appreciated π«Ά
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
π Support
please direct usage questions or support issues to the mailing list:
bioperl-l@bioperl.org
rather than to the module maintainer directly. like, don't DM the maintainer, post in the group chat bestie. many experienced and responsive experts will be able to look at the problem and quickly address it. and if at all possible, please include a thorough description of the problem with code and data examples β the more deets the better, fr fr π
π Reporting bugs
report bugs to the Bioperl bug tracking system so we can keep track of the bugs and their resolution. bug reports can be submitted via the web:
https://github.com/bioperl/%%7Bdist%7D
π AUTHOR π
Heikki Lehvaslaiho <heikki@bioperl.org> β thank you for your service, king π«‘
πΈ COPYRIGHT πΈ
this software is copyright (c) by Heikki Lehvaslaiho.
this software is available under the same terms as the perl 5 programming language system itself.
and that's the page, bestie!! π this one came from perl v5.32.0, dated 2020-11-24, and it lives in Bio::C...ngPair(3pm) β go forth and extrapolate responsibly π¦β¨π
π¦ where this page comes from
- debian bookworm: libbio-coordinate-perl 1.7.1-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libbio-coordinate-perl 1.7.1-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libbio-coordinate-perl 1.7.1-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libbio-coordinate-perl 1.7.1-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libbio-coordinate-perl 1.7.1-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libbio-coordinate-perl 1.7.1-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms