Bio::T...LinkSet(3pm)

πŸ“¦
version 1.77 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

okay so bestie, welcome to Bio::Tools::EUtilities::Link::LinkSet β€” Class for EUtils LinkSets. yes that's the whole name, it's giving long module name energy but we move πŸ’…. This page comes to you from the User Contributed Perl Documentation, which is exactly what it sounds like β€” the people's docs, fr fr.


✨ VERSION ✨

version 1.77 β€” current, fresh, slaying 🌸


πŸŽ€ SYNOPSIS πŸŽ€

# ...

look, the synopsis is literally just a comment. iconic behavior honestly. sometimes the vibe is mystery πŸ’€


πŸ’– DESCRIPTION πŸ’–

# ...

also just a comment. no notes. the whole description is a mood. 🫢

what we do get is the full tour of every method this class has, so buckle up:

🌟 get_ids 🌟

  • Title: get_ids
  • Usage: my @ids = $linkset->get_ids
  • Function: hands you back the list of retrieved IDs
  • Returns: an array of IDs
  • Args: none
  • Notes: the Cmd / Description tea is as follows:
    • acheck β€” same as get_submitted_ids
    • lcheck β€” same as get_submitted_ids
    • ncheck β€” same as get_submitted_ids
    • prlinks β€” same as get_submitted_ids
    • llinks β€” same as get_submitted_ids
    • llinkslib β€” same as get_submitted_ids
    • neighbor β€” linked IDs for database in get_database
    • neighbor_history β€” linked IDs for database in get_database

πŸ’« get_database πŸ’«

  • Title: get_database
  • Usage: my $db = $info->get_database;
  • Function: returns a single database name (eutil-compatible). this is the queried database. for elinks (which have both 'db' and 'dbfrom') this is equivalent to db/dbto β€” use get_dbfrom() for the latter. heads up: this only ever returns the first db, and in some cases that's lowkey not what you want (say, when multiple dbs are queried)
  • Returns: string
  • Args: none
  • Notes: with all elink cmd arguments

πŸ’… get_db (alias for get_database)

same thing, different name, no cap. call it whatever feels right bestie 🫢

πŸ’… get_dbto (alias for get_database)

again β€” a whole other alias for get_database. the duality of (a) method πŸŽ€

🌈 get_databases 🌈

  • Title: get_databases
  • Usage: my $string = $linkset->get_databases;
  • Function: retrieve databases referred to for this linkset β€” these may be present as a single database or embedded in
  • Returns: array of strings
  • Args: none
ngl the original Function line just kinda... ends there. mid-sentence. the sentence is giving cliffhanger 😭 but we are not about to invent the rest of it, so here it stands.

πŸ’… get_dbs (alias for get_databases)

you guessed it β€” alias for get_databases. so many names for one vibe ✨

πŸ¦‹ get_dbfrom πŸ¦‹

  • Title: get_dbfrom
  • Usage: my $string = $linkset->get_dbfrom;
  • Function: retrieve the originating database for this linkset
  • Returns: string
  • Args: none
  • Title: get_link_names
  • Usage: my $string = $linkset->get_link_names;
  • Function: retrieve eutil-compatible link names
  • Returns: array of strings
  • Args: none
  • Notes: each LinkSet can hold multiple LinkInfo objects (each one containing a link name). also, some LinkSets define a single link name. this returns an array with all unique linknames globbed from both sources, if they're present and defined πŸ‘‘
  • Title: get_link_name
  • Usage: my $string = $linkset->get_link_name;
  • Function: retrieve an eutil-compatible link name
  • Returns: a single link name
  • Args: none

🌸 get_submitted_ids 🌸

  • Title: get_submitted_ids
  • Usage: my $string = $linkset->get_submitted_ids;
  • Function: retrieve the original ID list
  • Returns: string
  • Args: none

⭐ has_scores ⭐

  • Title: has_scores
  • Usage: if (my $linkset->has_scores) {...}
  • Function: returns TRUE if score data is present
  • Returns: Boolean
  • Args: none

πŸ”₯ get_scores πŸ”₯

  • Title: get_scores
  • Usage: %scores = $linkset->get_scores;
  • Function: returns a flattened list or a hash ref containing ID => score pairs
  • Returns: hash or hash ref (depends on whether you're in list or scalar context, iykyk)
  • Args: none

πŸ‘‘ get_score_by_id πŸ‘‘

  • Title: get_score_by_id
  • Usage: $score = $linkset->get_score_by_id($id);
  • Function: returns the score for one particular primary ID
  • Returns: integer
  • Args: [REQUIRED] Primary ID for the score lookup β€” do not skip this one bestie, it's required fr fr

πŸ’œ has_linkout πŸ’œ

  • Title: has_linkout
  • Usage: if ($linkset->has_linkout) {...}
  • Function: returns TRUE if the single ID present in this linkset has a linkout
  • Returns: boolean
  • Args: none
  • Notes: this checks cmd=lcheck (a boolean for a linkout) and also backchecks cmd=acheck for databases with the name 'LinkOut'

πŸŽ€ has_neighbor πŸŽ€

  • Title: has_neighbor
  • Usage: if ($linkset->has_neighbor) {...}
  • Function: returns TRUE if the single ID present in this linkset has a neighbor in the same database
  • Returns: boolean
  • Args: none
  • Notes: this checks cmd=ncheck (boolean for a neighbor in the same database); no other checks are performed at this time
  • Title: next_UrlLink
  • Usage: while (my $url = $linkset->next_UrlLink) {...}
  • Function: iterate through UrlLink objects
  • Returns: Bio::Tools::EUtilities::Link::UrlLink
  • Args:
  • Title: get_UrlLinks
  • Usage: my @urls = $linkset->get_UrlLinks
  • Function: returns all UrlLink objects
  • Returns: list of Bio::Tools::EUtilities::Link::UrlLink
  • Args:

πŸ¦‹ next_LinkInfo πŸ¦‹

  • Title: next_LinkInfo
  • Usage: while (my $info = $linkset->next_LinkInfo) {...}
  • Function: iterate through LinkInfo objects
  • Returns: Bio::Tools::EUtilities::Link::LinkInfo
  • Args:

πŸ“ get_LinkInfo πŸ“

  • Title: get_LinkInfo
  • Usage: my @links = $linkset->get_LinkInfo
  • Function: returns all LinkInfo objects
  • Returns: list of Bio::Tools::EUtilities::Link::LinkInfo
  • Args:

🧚 rewind 🧚

  • Title: rewind
  • Usage:
$info->rewind() # rewinds all (default)
$info->rewind('links') # rewinds only links
  • Function: 'rewinds' (resets) the specified iterators β€” all of them if you pass no arg
  • Returns: none
  • Args: [OPTIONAL] String:
    • 'all' β€” all iterators (default)
    • 'linkinfo' or 'linkinfos' β€” LinkInfo objects only
    • 'urllinks' β€” UrlLink objects only

⭐ to_string ⭐

  • Title: to_string
  • Usage: $foo->to_string()
  • Function: converts the current object to a string
  • Returns: none
  • Args: (optional) simple data for text formatting
  • Note: used generally for debugging and for various print methods

πŸ’Œ FEEDBACK πŸ’Œ

πŸ“¬ Mailing lists πŸ“¬

user feedback is literally an integral part of the evolution of this and other Bioperl modules β€” like, integral integral. send your comments and suggestions preferably to the Bioperl mailing list, and your participation is much appreciated 🫢

bioperl-l@bioperl.org               - General discussion
https://bioperl.org/Support.html    - 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. there are lots of experienced, responsive experts who'll be able to look at the problem and quickly address it. and please include a thorough description of the problem, with code and data examples, if at all possible. the more detail the better, bestie πŸ’…

πŸ› 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/bio-eutilities/issues

πŸ‘‘ AUTHOR πŸ‘‘

Chris Fields <cjfields@bioperl.org>


this software is copyright (c) 2006-2013 by Chris Fields.

this software is available under the same terms as the perl 5 programming language system itself.


and that's the whole page, bestie β€” perl v5.40.0, dated 2025-01-27, User Contributed Perl Documentation πŸ’…βœ¨ go forth and link your sets πŸ¦‹

πŸ“¦ where this page comes from