| Summary | Included libraries | Package variables | Synopsis | Description | General documentation | Methods |
# get an AnnotationCollectionI somehow, eg
$ac = $seq->annotation();
foreach $key ( $ac->get_all_annotation_keys() ) {
@values = $ac->get_Annotations($key);
foreach $value ( @values ) {
# value is an Bio::AnnotationI, and defines a "as_text" method
print "Annotation ",$key," stringified value ",$value->as_text,"\n";
# also defined hash_tree method, which allows data orientated
# access into this object
$hash = $value->hash_tree();
}
}
$obj->as_text(); # string formated to display to usersand
$obj->hash_tree(); # hash with defined rules for data-orientated discoveryThe hash_tree method is designed to play well with XML output and
Tag Object --- ------ reference Bio::Annotation::Reference comment Bio::Annotation::Comment dblink Bio::Annotation::DBLink gene_name Bio::Annotation::SimpleValue description Bio::Annotation::SimpleValueThese tags are the implict tags that the SeqIO system needs to round-trip
| get_all_annotation_keys | Description | Code |
| get_Annotations | Description | Code |
| get_num_of_annotations | Description | Code |
| get_all_annotation_keys | code | next | Top |
Title : get_all_annotation_keys Usage : $ac->get_all_annotation_keys() Function: gives back a list of annotation keys, which are simple text strings Returns : list of strings Args : none |
| get_Annotations | code | prev | next | Top |
Title : get_Annotations
Usage : my @annotations = $collection->get_Annotations('key')
Function: Retrieves all the Bio::AnnotationI objects for a specific key
Returns : list of Bio::AnnotationI - empty if no objects stored for a key
Args : string which is key for annotations |
| get_num_of_annotations | code | prev | next | Top |
Title : get_num_of_annotations Usage : my $count = $collection->get_num_of_annotations() Function: Returns the count of all annotations stored in this collection Returns : integer Args : none |
| get_all_annotation_keys | description | prev | next | Top |
shift->throw_not_implemented();}
| get_Annotations | description | prev | next | Top |
shift->throw_not_implemented();}
| get_num_of_annotations | description | prev | next | Top |
shift->throw_not_implemented();}
| FEEDBACK | Top |
| Mailing Lists | Top |
bioperl-l@bio.perl.org
| Reporting Bugs | Top |
bioperl-bugs@bio.perl.org http://bugzilla.bioperl.org/
| AUTHOR - Ewan Birney | Top |
| APPENDIX | Top |