# $Id: FeatureNamer.pm 16123 2009-09-17 12:57:27Z cjfields $ # # bioperl module for Bio::SeqFeature::Tools::FeatureNamer # # Please direct questions and support issues to # # Cared for by Chris Mungall # # Copyright Chris Mungall # # You may distribute this module under the same terms as perl itself # POD documentation - main docs before the code =head1 NAME Bio::SeqFeature::Tools::FeatureNamer - generates unique persistent names for features =head1 SYNOPSIS use Bio::SeqIO; use Bio::SeqFeature::Tools::FeatureNamer; # first fetch a genbank SeqI object $seqio = Bio::SeqIO->new(-file=>'AE003644.gbk', -format=>'GenBank'); $seq = $seqio->next_seq(); $namer = Bio::SeqFeature::Tools::FeatureNamer->new; my @features = $seq->get_SeqFeatures; foreach my $feature (@features) { $namer->name_feature($feature) unless $feature->display_name; } =head1 DESCRIPTION This is a helper class for providing names for SeqFeatures The L class provides a display_name method. Typically the display_name is not set when parsing formats such as genbank - instead properties such as B