diff options
Diffstat (limited to 'algo/blast/api/blast_options_api.c')
-rw-r--r-- | algo/blast/api/blast_options_api.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/algo/blast/api/blast_options_api.c b/algo/blast/api/blast_options_api.c index 12c0f855..9e248e8f 100644 --- a/algo/blast/api/blast_options_api.c +++ b/algo/blast/api/blast_options_api.c @@ -1,4 +1,4 @@ -/* $Id: blast_options_api.c,v 1.24 2007/03/20 15:17:16 kans Exp $ +/* $Id: blast_options_api.c,v 1.25 2007/12/14 17:11:29 madden Exp $ *************************************************************************** * * * COPYRIGHT NOTICE * @@ -323,6 +323,14 @@ Int2 SBlastOptionsSetDbGeneticCode(SBlastOptions* options, Int4 gc) options->db_options->genetic_code = gc; + if (GenCodeSingletonFind(gc) == NULL) + { + Uint1* gcode = NULL; + BLAST_GeneticCodeFind(options->db_options->genetic_code, &gcode); + GenCodeSingletonAdd(options->db_options->genetic_code, gcode); + free(gcode); + } + return status; } |