Learn R Programming

VLF (version 1.1)

aa.MODE: Amino Acid Modal Sequence

Description

Calculates the amino acid sequence that occurs most often in a matrix of amino acid sequences

Usage

aa.MODE(freq.matrix, seqlength)

Value

A vector containing the amino acid sequence that occurs most often.

Arguments

freq.matrix

Freuqncy 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_Modal <- aa.MODE(aminoAcid_frequency.Matrix, 216)

Run the code above in your browser using DataLab