Bioperl: Bioperl-guts: Proposed simple fix for Bugs #132, #133, #204 (fwd)

Ewan Birney birney@ebi.ac.uk
Tue, 11 Apr 2000 17:47:26 +0100 (GMT)


Jason - thanks for your mail. I think this sort of mail should 
be on the main list. (I realise you didn't necessarily decode my message
about this).

Comments insered below from me.


-----------------------------------------------------------------
Ewan Birney. Mobile: +44 (0)7970 151230, Work: +44 1223 494420
<birney@ebi.ac.uk>. 
-----------------------------------------------------------------

---------- Forwarded message ----------
Date: Tue, 11 Apr 2000 12:21:36 -0400 (EDT)
From: Jason Stajich <jason@chg.mc.duke.edu>
To: Bioperl Guts <vsns-bcd-perl-guts@lists.uni-bielefeld.de>
Subject: Bioperl-guts: Proposed simple fix for Bugs #132, #133, #204

The following are proposed fixes to small Bugs in bioperl.  They will be
applied to the 06-branch and the main trunk.  I will wait 1 day to see if
anyone has any problems with these fixes. 
-----------------------------
Bug #132 - reads as follows :
Module: SeqIO::GCG
Version: 1.3
OS: Irix 6.4
Submission from: smtp.genelogic.com (38.227.237.2)
The Seq.pm module's out_fasta method generates a fasta line which looks
like

>$self->{id} $self->{desc}
seq

But the SeqIO::GCG stores strings with newlines in the description field,
making
the fasta output invalid.

Fix:
This is a problem when a seq is printed in the fasta module so
will just strip out newlines from the desc field before printing in the
SeqIO::fasta module's write_seq function

Ewan: We had a similar hack/solution to some fixed line length comments in
EMBL. This is fine.

-----------------------------
Bug #133 - reads as follows:
Module:  Bio::DB::GenBank
Version: 0.05.1
OS: LINIX
Submission from: bush215.cshl.org (143.48.10.215)

Tried to retrieve GenPept ID ( CAB11162.1)
mistakingly using GenBank.pm module and 
the following fatal error occurred:

Can't call method "seq" on an undefined value
at /usr/lib/perl5/site_perl/5.005/Bio/SeqIO/Fasta.
pm line 191.

Comments: "Should we throw an exception when we can't find a sequence.
           Perhaps nicer than a null..."

Fix: 
This fixes the second part of Bug 204 as well.

in get_Seq_by_id
Throw an exception if $stream->next_seq() returns undef instead of
returning the undef.

Do this for both GenBank and GenPept.


Ewan: great stuff.


-Jason

Jason Stajich
Center for Human Genetics
Duke University Medical Center
jason@chg.mc.duke.edu
(919)684-1806
http://www.duke.edu/~jes12/
http://wwwchg.mc.duke.edu/


=========== Bioperl Project Mailing List Message Footer =======
Project URL: http://bio.perl.org
For info about how to (un)subscribe, where messages are archived, etc:
http://www.techfak.uni-bielefeld.de/bcd/Perl/Bio/vsns-bcd-perl-guts.html
====================================================================

=========== Bioperl Project Mailing List Message Footer =======
Project URL: http://bio.perl.org/
For info about how to (un)subscribe, where messages are archived, etc:
http://www.techfak.uni-bielefeld.de/bcd/Perl/Bio/vsns-bcd-perl.html
====================================================================