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

Library routines to read and write genetic codes. More...

#include "rwgencode.h"
#include "star.h"
#include "mol_tags.h"
#include "utilities.h"

Functions

Bstring read_gencode_star (Bstring &propfile)
 
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...
 

Variables

int verbose
 

Detailed Description

Library routines to read and write genetic codes.

Author
Bernard Heymann
Date
Created: 20030316
Modified: 20210328

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.

◆ read_gencode_star()

Bstring read_gencode_star ( Bstring propfile)

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

Variable Documentation

◆ verbose

int verbose
extern