On Sep 11, 2004, at 3:14 AM, Alexander Griekspoor wrote:
> I think you're right Koen, this is indeed better than further
> subclassing BCSequence. Certainly because it would mean you can nicely
> keep things separated for all kinds of manipulations through the
> addition of single wrapper objects instead of getting tons of
> different BCSequence subclasses.
>
We already have some in BioCocoa: BCUtilDNATranslator,
BCUtilMassCalculator.
Anyway, I am working now on the digest code, and want to make sure that
I get the design right.
1. BCUtilDigest is fed a BCSequence and enzyme information and does the
digest either by an external trigger or internally.
2. It returns an NSArray of BCFragment objects which are wrappers
conatining all info: the sequence, the original location, the enzyme.
Do we need a separate BCUtilDigestProtein, BCUtilDigestDNA?
We have to make sure BTW, that we use the 1-based counting when dealing
with subsequences.
cheers,
- Koen.