| 1 |
The \eslmod{scorematrix} module implements standard residue pairwise |
| 2 |
alignment scoring systems (such as BLOSUM matrices), and their |
| 3 |
probabilistic interpretation \citep{Altschul91,YuAltschul03}. |
| 4 |
|
| 5 |
Table~\ref{tbl:scorematrix_api} lists the functions in the |
| 6 |
\eslmod{scorematrix} API. The module implements one object, |
| 7 |
\ccode{ESL\_SCOREMATRIX}, which holds a score matrix with integer |
| 8 |
scores. |
| 9 |
|
| 10 |
\begin{table}[hbp] |
| 11 |
\begin{center} |
| 12 |
{\small |
| 13 |
\begin{tabular}{|ll|}\hline |
| 14 |
\apisubhead{The \ccode{ESL\_SCOREMATRIX} object.}\\ |
| 15 |
\hyperlink{func:esl_scorematrix_Create()}{\ccode{esl\_scorematrix\_Create()}} & Create an \ccode{ESL\_SCOREMATRIX}.\\ |
| 16 |
\hyperlink{func:esl_scorematrix_SetWAG()}{\ccode{esl\_scorematrix\_SetWAG()}} & Parameterize matrix from the WAG evolutionary model. \\ |
| 17 |
\hyperlink{func:esl_scorematrix_SetFromProbs()}{\ccode{esl\_scorematrix\_SetFromProbs()}} & Set matrix scores from target and background probabilities.\\ |
| 18 |
\hyperlink{func:esl_scorematrix_Compare()}{\ccode{esl\_scorematrix\_Compare()}} & Compare two matrices for equality.\\ |
| 19 |
\hyperlink{func:esl_scorematrix_Max()}{\ccode{esl\_scorematrix\_Max()}} & Returns maximum value in score matrix.\\ |
| 20 |
\hyperlink{func:esl_scorematrix_Min()}{\ccode{esl\_scorematrix\_Min()}} & Returns minimum value in score matrix.\\ |
| 21 |
%\hyperlink{func:esl_scorematrix_RelativeEntropy()}{\ccode{esl\_scorematrix\_RelativeEntropy()}} & Returns relative entropy of a matrix.\\ |
| 22 |
\hyperlink{func:esl_scorematrix_IsSymmetric()}{\ccode{esl\_scorematrix\_IsSymmetric()}} & Returns \ccode{TRUE} for symmetric matrix.\\ |
| 23 |
\hyperlink{func:esl_scorematrix_Destroy()}{\ccode{esl\_scorematrix\_Destroy()}} & Frees a matrix.\\ |
| 24 |
\apisubhead{Reading/writing score matrices.}\\ |
| 25 |
\hyperlink{func:esl_scorematrix_Read()}{\ccode{esl\_scorematrix\_Read()}} & Read a standard matrix input file.\\ |
| 26 |
\hyperlink{func:esl_scorematrix_Write()}{\ccode{esl\_scorematrix\_Write()}} & Write a BLAST-compatible score matrix file.\\ |
| 27 |
%\apisubhead{Interpreting matrices probabilistically.}\\ |
| 28 |
%\hyperlink{func:esl_scorematrix_ObtainPij()}{\ccode{esl\_scorematrix\_ObtainPij()}} & Obtain $P_{ij}$ from score matrix with known $\lambda$ and background $f$'s.\\ |
| 29 |
%\hyperlink{func:esl_scorematrix_SolveLambda()}{\ccode{esl\_scorematrix\_SolveLambda()}} & Find $\lambda$ for score matrix, given background.\\ |
| 30 |
%\hyperlink{func:esl_scorematrix_ReverseEngineer()}{\ccode{esl\_scorematrix\_ReverseEngineer()}} & Calculate the probabilistic basis of a score matrix.\\ |
| 31 |
|
| 32 |
\hline |
| 33 |
\end{tabular} |
| 34 |
} |
| 35 |
\end{center} |
| 36 |
\caption{The \eslmod{scorematrix} API.} |
| 37 |
\label{tbl:scorematrix_api} |
| 38 |
\end{table} |
| 39 |
|
| 40 |
\subsection{An example of using the scorematrix API} |
| 41 |
|
| 42 |
Figure~\ref{fig:scorematrix_example} shows an example of reading a |
| 43 |
matrix file from disk, reverse engineering it \citep{YuAltschul03} to |
| 44 |
obtain its target probabilities, background frequencies, and lambda, |
| 45 |
then printing information about it: |
| 46 |
|
| 47 |
\begin{figure} |
| 48 |
\input{cexcerpts/scorematrix_example} |
| 49 |
\caption{An example of using the \eslmod{scorematrix} module.} |
| 50 |
\label{fig:scorematrix_example} |
| 51 |
\end{figure} |