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

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

#include "Bstring.h"

Go to the source code of this file.

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

Definition in file rwgencode.h.

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).

Definition at line 26 of file rwgencode.cpp.

◆ 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.

Definition at line 112 of file rwgencode.cpp.

◆ 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.

Definition at line 61 of file rwgencode.cpp.