3 Dec 2002 16:00
bug in location->to_FTstring
Philip Lijnzaad <p.lijnzaad <at> med.uu.nl>
2002-12-03 15:00:19 GMT
2002-12-03 15:00:19 GMT
Dear all,
hope you're all doing well! Quick question. I installed bioperl-1.0.2 from
CPAN, and noticed what looks like a rather serious bug in
Bio::Location (or Bio::Location::Split). When I read the following file:
------------------------------------------------------------------------
ID foo
AC bar
XX
FH Key Location/Qualifiers
FH
FT gene complement(1..20)
FT /gene="YJL225C"
FT CDS complement(join(1..4,10..20))
FT /gene="YJL225C"
SQ Sequence 60 BP; 15 A; 15 C; 15 G; 15 T; 0 other;
cccacacaca caccacaccc acacccacac acaccacacc cacacaccac acccacacca 60
//
------------------------------------------------------------------------
and iterate over the features to extract the locations, like so:
for my $feat ( $seq->top_SeqFeatures ) {
# $feat is a Bio::SeqFeature::Generic
print $loc=$feat->location->to_FTstring;
}
It prints
(Continue reading)
RSS Feed