[Biojava-dev] DNATools.forSymbol
Rhett Sutphin
rhett-sutphin at uiowa.edu
Thu Mar 13 16:13:48 EST 2003
Hi Mark,
Thanks for the amazingly quick response. (With a patch, no less.)
But I'm still wondering why DNATools.forSymbol('n') should throw an
exception while DNATools.createDNA("n") does not. Is there a reason?
Rhett
On Thursday, March 13, 2003, at 03:51 PM, Schreiber, Mark wrote:
> Hi -
>
> There is no good reason other than it is a weakly observed convention
> to
> use lower case letters for DNA and RNA and upper case for Protein. I
> have changed the methods in DNA and RNA tools to be case insensitive. I
> have commited the changes to biojava-live.
>
> - Mark
>
>
>> -----Original Message-----
>> From: Rhett Sutphin [mailto:rhett-sutphin at uiowa.edu]
>> Sent: Friday, 14 March 2003 10:44 a.m.
>> To: biojava-dev at biojava.org
>> Subject: [Biojava-dev] DNATools.forSymbol
>>
>>
>> Hi,
>>
>> I have what might be a stupid question: why isn't
>> DNATools.forSymbol(c) the same as
>> DNATools.createDNA(Character.toString(c)).symbolAt(1) for all c?
>> forSymbol only works for lowercase a, c, g, and t, while createDNA
>> handles uppercase and lowercase of the whole DNA alphabet,
>> plus gaps.
>> Is there a special meaning/use of forSymbol that warrants this
>> difference in behavior?
>>
>> Just curious,
>> Rhett
More information about the biojava-dev
mailing list