Learn R Programming

VLF (version 1.1)

aa.MODE.second.freq: Amino Acid Second Modal Frequency

Description

Returns the frequencies of the amino acids that occur second most often in each position of a matrix of amino acid sequences.

Usage

aa.MODE.second.freq(freq.matrix, seqlength)

Value

A vector containing the frequencies of the second modal amino acid sequence.

Arguments

freq.matrix

Frequency matrix for amino acids.

seqlength

Length of amino acid sequences.

Author

Taryn B. T. Athey and Paul D. McNicholas

Details

The argument freq.matrix can be calculated using the function aa.frequency.matrix.function

Examples

Run this code
if (FALSE) data(birds_aminoAcids)
birds_aminoAcid_count <- aa.count.function(birds_aminoAcids, 216)
aminoAcid_frequency.Matrix <- aa.frequency.matrix.function(birds_aminoAcid_count, 216)
aminoAcid_secondModalFreq <- aa.MODE.second.freq(aminoAcid_frequency.Matrix, 216)

Run the code above in your browser using DataLab