3 Apr 2012 18:56
problem with trunc_with_features (SeqUtils.pm)
Heath O'Brien <heath.obrien <at> gmail.com>
2012-04-03 16:56:31 GMT
2012-04-03 16:56:31 GMT
Hi All,
I've encountered a bug in the trunc_with_features function in SeqUtils.pm, or at
least behavior that was unexpected to me:
Features with fuzzy coordinates in the original sequence are converted to exact
coordinates in the truncated sequence. For example, the script below changes the
coordinates for the feature from <1..5 to 1..5.
I have modified the code to change this behavior on my system, but I thought I'd
post something here in case others encounter the same problem.
all good things,
Heath
#!/usr/bin/perl -w
use strict;
use warnings;
use Bio::SeqIO;
use Bio::SeqUtils;
my $infile= shift;
my $inIO = Bio::SeqIO->new('-file' => $infile,
'-format' => 'genbank') or die "could not open seq file $infile\n";
my $outfile = $infile . '_out.gbk';
my $outIO = Bio::SeqIO->new('-file' => ">$outfile",
(Continue reading)
RSS Feed