Provides codon functionality for translation of DNA sequences
Declared In: BCCodonDNA.h
A codon is a composite object, consisting of three bases and a corresponding amino acid. This class provides the equivalent functionality in code form. The common (amino acid) portion of the class is implemented by the superclass, BCCodon. The DNA specific form provides a designated initilization routine and methods for querying its base component. You will typically not create these items, but rather access them via methods in BCGeneticCode.
designated class initilizer
- (BCCodonDNA *)initWithDNASequenceString: (NSString *)sequenceString andAminoAcidString: (NSString *)aaString;
takes the supplied strings and uses them to get references to the corresponding BCSymbol objects. Will return nil if any of these objects cannot be created with the given strings, or the strings are malformed.
returns yes only if every base of the entry is represented by the bases of the codon in the appropriate order.
- (BOOL) matchesTriplet: (NSArray *)entry;
implementation of this method accounts for ambiguous bases.
returns a BCSequence comprised of the appropriate bases
- (BCSequence *) triplet;
provides access to a singleton codon that represents a generic non-coding triplet
+ (BCCodonDNA *)unmatched;
© 2008 The BioCocoa Project.
Last Updated: Wednesday, October 01, 2008