NAME
Bio::Tools::EUtilities::Info::FieldInfo - Class for storing einfo field data.
VERSION
version 1.77
SYNOPSIS
#### should not create instance directly; Bio::Tools::EUtilities does this ####my $info = Bio::Tools::EUtilities->new(-eutil => 'einfo',-file => 'einfo.xml');# can also use '-response' (for HTTP::Response objects) or '-fh' (for filehandles)# print available databases (if data is present)print join(', ',$info->get_available_databases),"\n";# get database infomy $db = $info->get_database; # in case you forgot...my $desc = $info->get_description;my $nm = $info->get_menu_name;my $ct = $info->get_record_count;my $dt = $info->get_last_update;# EUtilDataI interface methodsmy $eutil = $info->eutil;my $type = $info->type;# iterate through Field and Link objectswhile (my $field = $info->next_Field) {print "Field code: ",$field->get_field_code,"\n";print "Field name: ",$field->get_field_name,"\n";print "Field desc: ",$field->get_field_description,"\n";print "DB : ",$field->get_database,"\n";print "Term ct : ",$field->get_term_count,"\n";for my $att (qw(is_date is_singletoken is_hierarchy is_hidden is_numerical)) {print "\tField $att\n" if $field->$att;}}my @fields = $info->get_Fields; # grab them all (useful for grep)$info->rewind('fields'); # rewinds Field iterator
DESCRIPTION
This class handles simple field data output (XML) from einfo.
For more information on einfo see:
http://eutils.ncbi.nlm.nih.gov/entrez/query/static/einfo_help.html
new
Title : newNote : *** should not be called by end-users ***Usage : my $ct = Bio::Tools::EUtilities::Info::FieldInfo;Function : returns new FieldInfo instanceReturns : Bio::Tools::EUtilities::Info::FieldInfo instanceArgs : none (all data added via _add_data, most methods are getters only)
get_term_count
Title : get_term_countUsage : my $ct = $field->get_term_count;Function : returns number of terms for fieldReturns : integerArgs : none
get_field_name
Title : get_field_nameUsage : my $nm = $field->get_field_name;Function : returns the full name of the fieldReturns : stringArgs : none
get_full_name
Title : get_full_nameNote : alias of get_field_name()
get_field_code
Title : get_field_codeUsage : $field->get_field_code()Function : returns field code (abbreviation) used for queriesReturns : stringArgs : none
get_field_description
Title : get_field_descriptionUsage : $field->get_field_descriptionFunction : returns field descriptionReturns : stringArgs : noneNote : alias of get_description()
is_date
Title : is_dateUsage : if ($field->is_date) {...}Function : returns true if field contains date informationReturns : BooleanArgs : none
is_singletoken
Title : is_singletokenUsage : if ($field->is_singletoken) {...}Function : returns true if field has single value in docsumsReturns : BooleanArgs : none
is_hierarchy
Title : is_hierarchyUsage : if ($field->is_hierarchy) {...}Function : returns true if field contains hierarchal valuesReturns : BooleanArgs : none
is_hidden
Title : is_hiddenUsage : if ($field->is_hidden) {...}Function : returns true if field is hidden in docsumsReturns : BooleanArgs : none
is_numerical
Title : is_numericalUsage : if ($field->is_numerical) {...}Function : returns true if field contains a numerical valueReturns : BooleanArgs : none
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
AUTHOR
Chris Fields <[email protected]>
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.