Description Usage Arguments Details Value Note Author(s) References See Also Examples

Quantifies residue conservation in a given protein sequence alignment by calculating the degree of amino acid variability in each column of the alignment.

1 2 3 |

`x` |
an alignment list object with |

`method` |
the conservation assesment method. |

`sub.matrix` |
a matrix to score conservation. |

`matrix.file` |
a file name of an arbitary user matrix. |

`normalize.matrix` |
logical, if TRUE the matrix is normalized pior to assesing conservation. |

To assess the level of sequence conservation at each position in an alignment, the “similarity”, “identity”, and “entropy” per position can be calculated.

The “similarity” is defined as the average of the similarity scores of all pairwise residue comparisons for that position in the alignment, where the similarity score between any two residues is the score value between those residues in the chosen substitution matrix “sub.matrix”.

The “identity” i.e. the preference for a specific amino acid to be found at a certain position, is assessed by averaging the identity scores resulting from all possible pairwise comparisons at that position in the alignment, where all identical residue comparisons are given a score of 1 and all other comparisons are given a value of 0.

“Entropy” is based on Shannons information entropy. See the
`entropy`

function for further details.

Note that the returned scores are normalized so that conserved columns score 1 and diverse columns score 0.

Returns a numeric vector of scores

Each of these conservation scores has particular strengths and weaknesses. For example, entropy elegantly captures amino acid diversity but fails to account for stereochemical similarities. By employing a combination of scores and taking the union of their respective conservation signals we expect to achieve a more comprehensive analysis of sequence conservation (Grant, 2007).

Barry Grant

Grant, B.J. et al. (2006) *Bioinformatics* **22**, 2695–2696.
Grant, B.J. et al. (2007) *J. Mol. Biol.* **368**, 1231–1248.

1 2 3 4 5 6 | ```
## Read an example alignment
aln <- read.fasta(system.file("examples/hivp_xray.fa",package="bio3d"))
## Score conservation
conserv(x=aln$ali, method="similarity", sub.matrix="bio3d")
##conserv(x=aln$ali,method="entropy22", sub.matrix="other")
``` |

bio3d documentation built on April 3, 2018, 9:05 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.