1 package Bio
::DB
::GFF
::Adaptor
::memory
::feature_serializer
;
6 Bio::DB::GFF::Adaptor::memory::feature_serializer - utility methods for serializing and deserializing GFF features
13 use vars
qw(@EXPORT @EXPORT_OK @hash2array_map);
14 use base qw(Exporter);
15 @EXPORT_OK = qw(feature2string string2feature @hash2array_map);
18 @hash2array_map = qw(ref start stop source method score strand phase gclass gname tstart tstop feature_id group_id bin);
23 my @a = @
{$feature}{@hash2array_map};
24 push @a,map {join "\0",@
$_} @
{$feature->{attributes
}} if $feature->{attributes
};
30 my (@attributes,%feature);
31 (@feature{@hash2array_map},@attributes) = split $;,$string;
32 $feature{attributes
} = [map {[split "\0",$_]} @attributes];
33 undef $feature{group_id
};