ARB
Macros | Enumerations | Functions
GEN_translations.cxx File Reference
#include "GEN_local.hxx"
#include <Translate.hxx>
#include <AP_codon_table.hxx>
#include <aw_question.hxx>
#include <arbdbt.h>
Include dependency graph for GEN_translations.cxx:

Go to the source code of this file.

Macros

#define set_result_bit(s)   result = GEN_remove_state(result|s)
 

Enumerations

enum  GEN_remove_state {
  GRS_NO_CHANGE = 0, GRS_FAILED = 1, GRS_TRANSLATION_REMOVED = 2, GRS_TRANSLATION_FAILED = 4,
  GRS_START_CODON_WRONG = 8, GRS_NOTE_ADDED = 16
}
 

Functions

static chartranslate_gene_sequence (GBDATA *gb_gene, GB_ERROR &error, int &translated_length, char *startCodon)
 
static GEN_remove_state remove_redundant_translation (GBDATA *gb_gene, bool ignore_start_codon_error, char *errornousCodon, GB_ERROR &error)
 
GB_ERROR GEN_testAndRemoveTranslations (GBDATA *gb_gene_data, void(*warn)(AW_CL cd, const char *msg), AW_CL cd, AW_repeated_question *ok_to_ignore_wrong_start_codon)
 

Macro Definition Documentation

#define set_result_bit (   s)    result = GEN_remove_state(result|s)

Enumeration Type Documentation

Enumerator
GRS_NO_CHANGE 
GRS_FAILED 
GRS_TRANSLATION_REMOVED 
GRS_TRANSLATION_FAILED 
GRS_START_CODON_WRONG 
GRS_NOTE_ADDED 

Definition at line 58 of file GEN_translations.cxx.

Function Documentation

static char* translate_gene_sequence ( GBDATA gb_gene,
GB_ERROR error,
int translated_length,
char startCodon 
)
static
static GEN_remove_state remove_redundant_translation ( GBDATA gb_gene,
bool  ignore_start_codon_error,
char errornousCodon,
GB_ERROR error 
)
static
GB_ERROR GEN_testAndRemoveTranslations ( GBDATA gb_gene_data,
void(*)(AW_CL cd, const char *msg)  warn,
AW_CL  cd,
AW_repeated_question *  ok_to_ignore_wrong_start_codon 
)