[Biococoa-dev] BCSequenceRecord

Koen van der Drift kvddrift at earthlink.net
Thu Jul 7 20:26:03 EDT 2005

On Jul 6, 2005, at 6:30 PM, Charles Parnot wrote:

>> One of the things I also read about on the biopython mailinglist is 
>> that we could keep the BCSequenceXXX classes very light, and create a 
>> new class BCSequenceRecord, that is used to store all info from a 
>> datafile. In that case, the BCSequence is just one of the key/value 
>> pairs.
>> cheers,
>> - Koen.
> Sorry, Koen, but I have no idea what you are talking about here!

What I am suggesting is that we keep the BCSequence class just for 
managing the sequence, such as creating, inserting, etc, and thus keep 
it very lightweight. To store any annotations and features we create a 
new class BCSequenceRecord. This is what will be created in the IO 
classes, and it will have a BCSequence object in one of its key-value 
pairs. So we remove NSMutableDictionary *annotations from 
BCAbstractSequence and move it to BCSequenceRecord.

The advantage is that when you are just dealing with sequences, you 
want it to be as small as possible, and don't have the additional 
luggage of all the annotations.

Does that make more sense?

- Koen.

More information about the Biococoa-dev mailing list