[Biococoa-dev] Using annotations

Koen van der Drift kvddrift at earthlink.net
Wed Feb 23 17:19:42 EST 2005


I finally had some time to look more closer at your BCAnnotations 
class. I am not sure how you intend it to be used.

Suppose I want to add a BCAnnotation for an organism to the annotations 
dictionary of BCSequence. My instinct would say to use the key 
@"organism" and the value @"Homo Sapiens". However, if I look at your 
code, both strings are supposed to go into a BCAnnotation object:

newAnnotation = [[BCAnnotation alloc] initWithName: @"organism" 
content: @"Homo sapiens"];

Now how do I add it to the dictionary of the sequence? I already used 
the key (organism) inside BCAnnotation, so should I use it again? If 
yes, why is the key/name repeated inside the annotation object? This is 
not a critisicm, because I really like the way it is set up now. I am 
just trying to understand how it works :-)

- Koen.

More information about the Biococoa-dev mailing list