Bio::T...:DocSum(3pm)
π NAME π
Bio::Tools::EUtilities::Summary::DocSum β bestie, this is the data object for document summary data from esummary. (You'll spot it filed in the user-contributed Perl docs as Bio::T...:DocSum(3pm).)
πΈ VERSION πΈ
version 1.77 β¨
π¦ SYNOPSIS π¦
# Implement ItemContainerI
# $foo is any ItemContainerI (current implementations are DocSum and Item itself)
while (my $item = $foo->next_Item) { # iterate through contained Items
# do stuff here
}
@items = $foo->get_Items; # all Items in the container (hierarchy intact)
@items = $foo->get_all_Items; # all Items in the container (flattened)
@items = $foo->get_Items_by_name('bar'); # Specifically named Items
($content) = $foo->get_contents_by_name('bar'); # content from specific Items
($type) = $foo->get_type_by_name('bar'); # data type from specific Items
π DESCRIPTION π
Okay so this is the basic class for Document Summary data from NCBI eUtils, handed back to you from esummary. It implements the simple ItemContainerI interface. That's the whole vibe. π
π new
- Title :
new - Usage :
- Function :
- Returns :
- Args :
ngl bestie, every one of these fields is just sitting there empty. Iconic of it, honestly. π
π get_ids
- Title :
get_ids - Usage :
my ($id) = $item->get_ids; - Function : hands you an array or an array ref with the id
- Returns : array or array ref
- Args : none
- Note : the behavior of this method stays consistent with the other implementations of
get_ids(). If you want the single DocSum ID, you gotta useget_id()instead. β¨
π get_id
- Title :
get_id - Usage :
my ($id) = $item->get_id; - Function : returns the UID of the record
- Returns : integer
- Args : none
π ItemContainerI methods π
π next_Item
- Title :
next_Item - Usage :
while (my $item = $docsum->next_Item) {...} - Function : iterates through Items (that nested layer of Item)
- Returns : a single Item
- Args : [optional] a single arg (string)
'flatten'β iterates through a flattened list, alaget_all_DocSum_Items()
π get_Items
- Title :
get_Items - Usage :
my @items = $docsum->get_Items - Function : returns a list of, well, Items
- Returns : array of Items
- Args : none
π get_all_Items
- Title :
get_all_Items - Usage :
my @items = $docsum->get_all_Items - Function : returns a flattened list of all Item objects (Items, ListItems, StructureItems)
- Returns : array of Items
- Args : none
- Note : items get added top-down (similar order to using nested calls), in the original list order. So like:
1 2 7 8
Item - Item - Item - Item ...
|
| 3 6
ListItem - ListItem
|
| 4 5
Structure - Structure
π get_all_names
- Title :
get_all_names - Usage :
my @names = get_all_names() - Function : returns an array of names for all the Item(s) in the DocSum
- Returns : array of unique strings
- Args : none
π get_Items_by_name
- Title :
get_Items_by_name - Usage :
my @items = get_Items_by_name('CreateDate') - Function : returns the named Item(s) in the DocSum (the ones you named in the arg you passed)
- Returns : array of Item objects
- Args : string (Item name)
π get_contents_by_name
- Title :
get_contents_by_name - Usage :
my ($data) = get_contents_by_name('CreateDate') - Function : returns content for the named Item(s) in the DocSum (again, whatever you passed in)
- Returns : array of values (type varies per Item)
- Args : string (Item name)
π get_type_by_name
- Title :
get_type_by_name - Usage :
my $data = get_type_by_name('CreateDate') - Function : returns the data type for the named Item in the DocSum (the one you passed in)
- Returns : scalar value (string) if present
- Args : string (Item name)
π rewind
- Title :
rewind - Usage :
$docsum->rewind(); - Function : rewinds the DocSum iterator
- Returns : none
- Args : [optional]
'recursive'β rewind all the DocSum object layers (Items, ListItems, StructureItems)
π 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 : this one's generally for debugging and for the various print methods π«Ά
π«Ά FEEDBACK π«Ά
πΈ Mailing lists πΈ
User feedback is literally an integral part of the evolution of this and other Bioperl modules. 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. So many experienced and responsive 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. π₯Ί
πΈ 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>
π COPYRIGHT π
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 π
this was perl v5.40.0, dated 2025-01-27, Bio::T...:DocSum(3pm). slay, go forth and summarise those documents π
π¦ where this page comes from
- debian trixie: libbio-eutilities-perl 1.77-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libbio-eutilities-perl 1.77-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libbio-eutilities-perl 1.77-3 Β· 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