Bsoft 2.1.4
Bernard's software package
rwgencode.h File Reference

Header file for reading a genetic code from a file. More...

#include "Bstring.h"

Functions

Bstring get_genetic_code (Bstring &filename)
 Gets the genetic code from a parameter file. More...
 
int write_genetic_code (Bstring &filename, Bstring &gc)
 Writing genetic code. More...
 
int index_from_codon (const char codon[3])
 Gets the index associated with a specific codon. More...
 

Detailed Description

Header file for reading a genetic code from a file.

Author
Bernard Heymann
Date
Created: 20030316
Modified: 20060710

Function Documentation

◆ get_genetic_code()

Bstring get_genetic_code ( Bstring filename)

Gets the genetic code from a parameter file.

Parameters
&filenamefile name (if empty, use a default file).
Returns
Bstring 64 character array of residues (+1 0 termination character).

◆ index_from_codon()

int index_from_codon ( const char  codon[3])

Gets the index associated with a specific codon.

Parameters
*codonthe codon.
Returns
int index.

◆ write_genetic_code()

int write_genetic_code ( Bstring filename,
Bstring gc 
)

Writing genetic code.

Parameters
&filenamefile name.
&gc64-byte string with the genetic code.
Returns
int 0.