[Bioperl-l] Bio::Tools::GuessSeqFormat unknown return value?

Heikki Lehvaslaiho heikki at nildram.co.uk
Wed Dec 10 17:48:43 EST 2003


Just what I wanted to hear. Changes commited.

	-Heikki

On Wednesday 10 Dec 2003 3:52 pm, Hilmar Lapp wrote:
> That pretty much says what I've said as well. If there's no value then
> don't return one.
>
> 	-hilmar
>
> On Wednesday, December 10, 2003, at 04:26  AM, Aaron J. Mackey wrote:
> > I'd vote for undef as the most useful "Perlish" convention:
> >
> >  die "Say what?" unless $format = $guesser->guess_format($file);
> >
> > vs:
> >
> >  die "Say what?" unless ($format = $guesser->guess_format($file)) &&
> > $format ne "unknown";
> >
> > -Aaron
> >
> > On Dec 10, 2003, at 4:35 AM, Heikki Lehvaslaiho wrote:
> >> Bio::Tools::GuessSeqFormat returns now string 'unknown'. My question
> >> is: how
> >> strongly should we enforce the convention that unknown values return
> >> undef?
> >>
> >> In practice, the choises are (1) undef, (2) empty string, (3) zero,
> >> (4)
> >> predefined string value.  What are are the advantages and
> >> disadvantages of
> >> this. Discuss.
> >>
> >> I seem to remember that Hilmar felt strongly about this. ;-)
> >>
> >> 	-Heikki
> >>
> >> --
> >> ______ _/      _/_____________________________________________________
> >>       _/      _/                      http://www.ebi.ac.uk/mutations/
> >>      _/  _/  _/  Heikki Lehvaslaiho    heikki_at_ebi ac uk
> >>     _/_/_/_/_/  EMBL Outstation, European Bioinformatics Institute
> >>    _/  _/  _/  Wellcome Trust Genome Campus, Hinxton
> >>   _/  _/  _/  Cambs. CB10 1SD, United Kingdom
> >>      _/      Phone: +44 (0)1223 494 644   FAX: +44 (0)1223 494 468
> >> ___ _/_/_/_/_/________________________________________________________
> >> _______________________________________________
> >> Bioperl-l mailing list
> >> Bioperl-l at portal.open-bio.org
> >> http://portal.open-bio.org/mailman/listinfo/bioperl-l
> >
> > _______________________________________________
> > Bioperl-l mailing list
> > Bioperl-l at portal.open-bio.org
> > http://portal.open-bio.org/mailman/listinfo/bioperl-l

-- 
______ _/      _/_____________________________________________________
      _/      _/                      http://www.ebi.ac.uk/mutations/
     _/  _/  _/  Heikki Lehvaslaiho    heikki_at_ebi ac uk
    _/_/_/_/_/  EMBL Outstation, European Bioinformatics Institute
   _/  _/  _/  Wellcome Trust Genome Campus, Hinxton
  _/  _/  _/  Cambs. CB10 1SD, United Kingdom
     _/      Phone: +44 (0)1223 494 644   FAX: +44 (0)1223 494 468
___ _/_/_/_/_/________________________________________________________


More information about the Bioperl-l mailing list