[Bioperl-l] patch for Bio::SeqFeature::Tools::IDHandler.pm

Steffen Grossmann grossman at molgen.mpg.de
Wed Oct 13 10:38:27 EDT 2004


Dear all,

I came across a small bug in the Bio::SeqFeature::Tools::IDHandler.pm 
module, which can be corrected by the small patch shown below. Actually, 
$parent is only the ID of the feature, so it doesn't make sense to use 
the method 'add_SeqFeature' on it. The hash %sf_by_ID has been created 
before to map the IDs to the actual features.

195c195
<              $parent->add_SeqFeature($_);
---
 >              $sf_by_ID{$parent}->add_SeqFeature($_);

Thanks!

Steffen

-- 
%---------------------------------------------%
%            Steffen Grossmann                %
%                                             %
% Max Planck Institute for Molecular Genetics %
%      Computational Molecular Biology        %
%---------------------------------------------%
%              Ihnestrasse 73                 %
%               14195 Berlin                  %
%                 Germany                     %
%---------------------------------------------%
%         Tel: (++49 +30) 8413-1167           %
%         Fax: (++49 +30) 8413-1152           %
%---------------------------------------------%




More information about the Bioperl-l mailing list