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:

  • Ace
  • Ace::Object
  • Ace::Sequence
  • Ace::Sequence::FeatureList
  • Ace::Sequence::Feature
  • GFF

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