[Bioperl-l] moltype() -> alphabet()

Heikki Lehvaslaiho heikki@ebi.ac.uk
Mon, 22 Oct 2001 09:56:35 +0100

I have now commited the moltype() -> alphabet() changes in bioperl-live.
Calling moltype() will now print a warning unless you set verbose(-1).

I think the new method name reflects better what it does: It tells us what
character encoding (dna, rna, protein) the sequence object is using. The old
name was confusingly leading us to use it to what KIND of biological
molecule we are dealing with (I was confised!). In bioperl, basic sequence
objects are agnostic about it. You can change the sequence string at will
and they will work as long as you call biologically meaningful methods. 

At some level this question is a bit academic since difference between
nucleotides and amino acids is clear and not many people care about DNA/RNA
differences anyway. Hopefully this change will in the long run help to
clarify bioperl syntax.

______ _/      _/_____________________________________________________
      _/      _/                      http://www.ebi.ac.uk/mutations/
     _/  _/  _/  Heikki Lehvaslaiho          heikki@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
___ _/_/_/_/_/________________________________________________________