Objet $hit
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 '_annotation' => { 'description' => [ bless( { 'value' => 'Staphylococcus aureus subsp. aureus USA300_TCH1516, complete genome', 'tagname' => 'description' }, 'Bio::Annotation::SimpleValue' ) ],
Je voudrais récupérer la description (ligne 109 et 110 du code) :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 my $hit_description = $hit->annotation->description; print "$hit_description\n\n";
J'obtiens bien la valeur
mais avec un message me prévenant queStaphylococcus aureus subsp. aureus USA300_TCH1516, complete genome
Using old style annotation call on new Annotation::Collection object
STACK Bio::Annotation::Collection::description C:/Perl/site/lib/Bio/Annotation/Collection.pm:464
STACK toplevel BioSearchHSPGenericHSP.pl:109
Pourriez-vous me dire la façon correcte d'écrire?
Merci;
Partager