[Biococoa-dev] BCSequenceCluster

Koen van der Drift kvddrift at earthlink.net
Wed Oct 5 18:21:43 EDT 2005


> I suppose there would be some positional information, where the  
> sequence are aligned in some specific ways, so an array of  
> sequences + an array of offset should do. The best way to start is  
> to agree on a good, simple but complete and consistent header and  
> then the implementation almost does not matter and can always be  
> modified in the future.

Here's a first attempt for an interface for a BCSequenceCluster class :

@interface BCSequenceCluster : NSObject
     BCSequence        *representativeSequence;      // the sequence  
to which others are aligned, is 1st entry in sequenceArray

     NSMutableArray     *sequenceArray;            // array of the  
     NSMutableArray    *offsetArray;            // array of NSRanges  
that hold the offset information (position + length) of each sequence  
relative to the representativeSequence. The sequenceArray and  
offsetArray should be in sync, so the first entry in offsetArray is  

     NSString        *description;            // text to describe the  

-(BCSequence *)representativeSequence;

-(NSMutableArray *)sequenceArray;
-(NSMutableArray *)offsetArray;

-(void) addSequence: (BCSequence *) aSequence;
-(void) removeSequence: (BCSequence *) aSequence;

-(void) alignSequencesUsingSelector:(SEL)alignment;    // allows for  
the use of all kind of alignments if needed


Let me know what you guys think.


- Koen.

More information about the Biococoa-dev mailing list