Bio::Tools::EUtilities::Summary::DocSum3pm
Data object for document summary data from esummary.
Usage
# 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
Version
version 1.77
Overview
This is the basic class for Document Summary data from NCBI eUtils, returned from esummary. This implements the simple ItemContainerI interface.
new
Title : newUsage :Function :Returns :Args :
get_ids
Title : get_idsUsage : my ($id) = $item->get_ids;Function : returns array or array ref with idReturns : array or array refArgs : noneNote : the behavior of this method remains consistent with otherimplementations of get_ids(). To retrieve the single DocSum IDuse get_id()
get_id
Title : get_idUsage : my ($id) = $item->get_id;Function : returns UID of recordReturns : integerArgs : none
ItemContainerI methods
next_Item
Title : next_ItemUsage : while (my $item = $docsum->next_Item) {...}Function : iterates through Items (nested layer of Item)Returns : single ItemArgs : [optional] single arg (string)'flatten' - iterates through a flattened list alaget_all_DocSum_Items()
get_Items
Title : get_ItemsUsage : my @items = $docsum->get_ItemsFunction : returns list of, well, ItemsReturns : array of ItemsArgs : none
get_all_Items
Title : get_all_ItemsUsage : my @items = $docsum->get_all_ItemsFunction : returns flattened list of all Item objects (Items, ListItems,StructureItems)Returns : array of ItemsArgs : noneNote : items are added top-down (similar order to using nested calls)in original list order.1 2 7 8Item - Item - Item - Item ...|| 3 6ListItem - ListItem|| 4 5Structure - Structure
get_all_names
Title : get_all_namesUsage : my @names = get_all_names()Function : Returns an array of names for all Item(s) in DocSum.Returns : array of unique stringsArgs : none
get_Items_by_name
Title : get_Items_by_nameUsage : my @items = get_Items_by_name('CreateDate')Function : Returns named Item(s) in DocSum (indicated by passed argument)Returns : array of Item objectsArgs : string (Item name)
get_contents_by_name
Title : get_contents_by_nameUsage : my ($data) = get_contents_by_name('CreateDate')Function : Returns content for named Item(s) in DocSum (indicated bypassed argument)Returns : array of values (type varies per Item)Args : string (Item name)
get_type_by_name
Title : get_type_by_nameUsage : my $data = get_type_by_name('CreateDate')Function : Returns data type for named Item in DocSum (indicated bypassed argument)Returns : scalar value (string) if presentArgs : string (Item name)
rewind
Title : rewindUsage : $docsum->rewind();Function : rewinds DocSum iteratorReturns : noneArgs : [optional]'recursive' - rewind all DocSum object layers(Items, ListItems, StructureItems)
to_string
Title : to_stringUsage : $foo->to_string()Function : converts current object to stringReturns : noneArgs : (optional) simple data for text formattingNote : Used generally for debugging and for various print methods
Feedback
Mailing lists
User feedback is 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.
[email protected] - General discussionhttps://bioperl.org/Support.html - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list: [email protected] rather than to the module maintainer directly. 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.
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
Releases
6 releases since Debian 6.0 (Squeeze); the text changed 5 times.