[Biococoa-dev] mass calculator bug

Koen van der Drift kvddrift at earthlink.net
Sat Aug 28 16:50:26 EDT 2004

On Aug 28, 2004, at 11:13 AM, John Timmer wrote:

>> Is it possible to move all the rangeOfSubsequence variants that are 
>> now
>> in BCSequeneDNA to BCSequence? I think the same code can be useful for
>> proteins as well.
> Please do!

Already running into one problem here. These methods call 
"isRepresentedByBase" a couple of times. But that is only defined in 
BCNucleotideSymbol, not in BCSymbol.

I can think of a few solutions:

1. Change the name to isRepresentedBySymbol, and put an empty method in 
BCSymbol. I don;t think that the one in BCNucleotideSymbol gets called 
then, because I am treating all symbols as BCSymbol

2. Add an extra line that tests if the symbol is a BCNucleotideSymbol, 
and then excecute the line containing isRepresentedBySymbol.

3. ...

I think the second one is the way to go, but it might bring additional 

Any other ideas?


- Koen.

More information about the Biococoa-dev mailing list