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

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

πŸ’– Bio::Tools::EUtilities::History πŸ’–

okay bestie, so this is a page from User Contributed Perl Documentation β€” it's the manpage for Bio::T...History(3pm) and we're gonna get into it together, no cap. grab a boba, we're doing NCBI history data today πŸ§‹βœ¨


✨ NAME ✨

Bio::Tools::EUtilities::History β€” a lightweight implementation of the HistoryI interface. and when they say lightweight they mean it: not bound to filehandles, no extraneous methods, none of that extra baggage. just vibes and data πŸ’…


🌸 VERSION 🌸

version 1.77 β€” yes she has a version number and yes she's iconic for it πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

#should work for any class which is-a HistoryI
if ($obj->has_History) {
    # do something here
}

($webenv, $querykey) = $obj->history;

$obj->history($webenv, $querykey);

$webenv = $obj->get_webenv;

$query_key = $obj->get_query_key;

like… look at her. so clean. so readable. the way that has_History just asks and the object just answers πŸ˜­πŸ’–


πŸŽ€ DESCRIPTION πŸŽ€

okay so here's the tea β˜• β€” this class extends methods for any EUtilDataI implementation, and what it does is let instances deal with NCBI history data (WebEnv and query_key). literally that's the whole assignment.

and what do you even do with those? they can be used as parameters for further queries against data sets stored on the NCBI server, much like NCBI's Entrez search history. so if you wanna run complex queries using esearch, retrieve related data using elink, and retrieve large datasets using epost/efetch? yeah. this is the girl for the job πŸ”₯

this class is the simplest implementation and merely holds data for future queries from any HistoryI. so she's not doing the most β€” she's holding it down, storing the info, being reliable. main character energy but make it humble 🫢

see also Bio::Tools::EUtilities::Query (esearch) and Bio::Tools::EUtilities::LinkSet (elink), which also implement HistoryI. the whole friend group is eating πŸ’œ


πŸ“ history

  • Title β€” history
  • Usage β€” my ($webenv, $qk) = $hist->history
  • Function β€” Get/Set two-element list of webenv() and query_key()
  • Returns β€” array
  • Args β€” two-element list of webenv, query key

get AND set in one method? we love a multitasker πŸ’…


🌈 get_webenv

  • Title β€” get_webenv
  • Usage β€” my $webenv = $hist->get_webenv
  • Function β€” returns web environment key needed to retrieve results from NCBI server
  • Returns β€” string (encoded key)
  • Args β€” none

no args, just vibes. she gives you the key and says nothing else πŸ”‘


🧚 get_query_key

  • Title β€” get_query_key
  • Usage β€” my $qk = $hist->get_query_key
  • Function β€” returns query key (integer) for the history number for this session
  • Returns β€” integer
  • Args β€” none

an integer bestie. a whole integer. for this session. don't forget that part, it's giving session-specific 😀


⭐ to_string

  • Title β€” to_string
  • Usage β€” $foo->to_string()
  • Function β€” converts current object to string
  • Returns β€” none
  • Args β€” (optional) simple data for text formatting
  • Note β€” Used generally for debugging and for the print_* methods

she converts the object to a string and returns literally nothing. iconic behaviour, honestly. used generally for debugging and for the print_* methods, so like β€” she's backstage crew, and backstage crew runs the show πŸ’–


πŸ’Œ FEEDBACK πŸ’Œ

🌸 Mailing lists

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

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. (read: don't dm the dev, post in the group chat πŸ’€)

many experienced and reponsive experts will be able look at the problem and quickly address it. please include a thorough description of the problem with code and data examples if at all possible. the more detail you give, the faster someone can help β€” that's just how it works bestie ✨

πŸ‘‘ Reporting bugs

report bugs to the Bioperl bug tracking system to help us 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.


lowkey important: that's the whole license situation, don't skip it, she's legal binding and she's cute about it πŸ’…

and that's the page!! this was perl v5.40.0, dated 2025-01-27, and yes the footer girlie gets her moment too πŸŽ€ thanks for reading bestie, go forth and has_History responsibly πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from