Ace::S...:Homol(3pm)
π Ace::Sequence::Homol π
okay bestie, gather round, because this is Ace::S...:Homol(3pm) β the Temporary Sequence Homology Class β straight out of the User Contributed Perl Documentation. she's little. she's temporary. she's doing her best. let's go π¦
β¨ NAME β¨
Ace::Sequence::Homol β Temporary Sequence Homology Class</p>. yes the class itself is telling you it's temporary, she's honest like that π
π SYNOPSIS π
here's the whole vibe in code form, no notes:
# Get all similarity features from an Ace::Sequence
@homol = $seq->features('Similarity');
# sort by score
@sorted = sort { $a->score <=> $b->score } @homol;
# the last one has the highest score
$best = $sorted[$#sorted];
# fetch its associated Ace::Sequence::Homol
$homol = $best->target;
# print out the sequence name, DNA, start and end
print $homol->name,' ',$homol->start,'-',$homol->end,"\n";
print $homol->asDNA;
see how $best->target just hands you the whole Ace::Sequence::Homol? iconic of her β¨
π DESCRIPTION π
so Ace::Sequence::Homol is a subclass of Ace::Object β not Ace::Sequence, okay, don't get it twisted β and she's specialized for returning information about a DNA or protein homology.
and girl. she is a temporary placeholder. like, literally, that's her whole deal. she's standing in for a more sophisticated homology class that will (eventually, someday) include support for alignments. so enjoy her while she's here π«Ά
πΈ OBJECT CREATION πΈ
fr fr, you will not ordinarily create an Ace::Sequence::Homol object directly. do not try to be the main character here.
instead, these objects get created for you in response to an info() or group() method call on a similarity feature inside an Ace::Sequence::Feature object. the object just appears. manifesting β¨
if you truly insist on creating an Ace::Sequence::Homol object directly β like, you're built different β then pretty please go consult the source code for the new() method. that's the lore. π
π OBJECT METHODS π
most methods are inherited from Ace::Object. but the following methods are also supported, bestie:
start()
$start = $homol->start;
returns the start of the area that is similar to the Ace::Sequence::Feature from which this homology was derived. coordinates are relative to the target homology. β
end()
$end = $homol->end;
returns the end of the area that is similar to the Ace::Sequence::Feature from which this homology was derived. coordinates are relative to the target homology. (yes, same caveat as start(), they're a matching set π)
asString()
$label = $homol->asString;
returns a human-readable identifier describing the nature of the feature. the format is:
$name/$start-$end
for example:
HUMGEN13/1-67
and the cute part? this method is also called automatically when the object is treated in a string context. she just shows up. no cap π
π¦ SEE ALSO π¦
go read these too, iykyk:
AceAce::ObjectAce::SequenceAce::Sequence::FeatureListAce::Sequence::FeatureGFF
π AUTHOR π
Lincoln Stein <lstein@w3.org> β with extensive help from Jean Thierry-Mieg <mieg@kaa.crbm.cnrs-mop.fr> π«Ά
Copyright (c) 1999, Lincoln D. Stein
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See DISCLAIMER.txt for disclaimers of warranty. β οΈ
and that's the whole page, bestie π this was perl v5.42.3, dated 2026-08-19, from the User Contributed Perl Documentation. stay hydrated, read your SEE ALSOs, and remember: she's temporary, but she ate. π β¨π
π¦ where this page comes from
- ubuntu stonking: libace-perl 1.92-14build1 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms