libuproc  1.2.0
Data Structures | Functions

Model. More...

Data Structures

struct  uproc_model
 Model. More...
 

Functions

uproc_modeluproc_model_load (const char *path, int orf_thresh_level)
 Loads all required data of a UProC model from files in the given directory and returns a corresponding object. More...
 
uproc_substmatuproc_model_substitution_matrix (uproc_model *model)
 Returns the substitution matrix of the model. More...
 
uproc_matrixuproc_model_codon_scores (uproc_model *model)
 Returns the codon scores of the model. More...
 
uproc_matrixuproc_model_orf_threshold (uproc_model *model)
 Returns the ORF threshold matrix of the model. More...
 
void uproc_model_destroy (uproc_model *model)
 Destroy the model and all associated objects. More...
 

Detailed Description

Model.

Function Documentation

uproc_model* uproc_model_load ( const char *  path,
int  orf_thresh_level 
)

Loads all required data of a UProC model from files in the given directory and returns a corresponding object.

Parameters
pathan existing directory containing the UProC model files.
orf_thres_levelthe ORF detection threshold to be used. Note that the corresponding file "orf_thresh_e%d" has to exist in the directory.
Returns
the model object on success or NULL on error
uproc_substmat* uproc_model_substitution_matrix ( uproc_model model)

Returns the substitution matrix of the model.

Note that the returned object will become invalid when the model is destroyed.

See also
uproc_model_destroy
Parameters
modelthe model
Returns
a pointer to the matrix
uproc_matrix* uproc_model_codon_scores ( uproc_model model)

Returns the codon scores of the model.

Note that the returned object will become invalid when the model is destroyed.

See also
uproc_model_destroy
Parameters
modelthe model.
Returns
a pointer to the ecurve.
uproc_matrix* uproc_model_orf_threshold ( uproc_model model)

Returns the ORF threshold matrix of the model.

Note that the returned object will become invalid when the model is destroyed.

See also
uproc_model_destroy
Parameters
modelthe model
Returns
a pointer to the idmap.
void uproc_model_destroy ( uproc_model model)

Destroy the model and all associated objects.

Parameters
modelthe model to destroy and free memory for.