Learn R Programming

VLF (version 1.1)

aa.MODE.freq: Amino Acid Modal Frequencies

Description

Returns the frequencies of the amino acids that occur most often in each position of the sequence.

Usage

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

Value

A vector of frequencies for the first modal sequence.

Arguments

freq.matrix

Frequency matrix for amino acids.

seqlength

Length of the 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_firstModalFreq <- aa.MODE.freq(aminoAcid_frequency.Matrix, 216)

Run the code above in your browser using DataLab