Learn R Programming

MLMOI (version 0.1.2)

decoder_codon: Translates the standard ambiguity codes for nucleotides (codon decoder)

Description

Translates the standard ambiguity codes for nucleotides in codon form from a pre-specified coding class to triplet designation of codons.

Usage

decoder_codon(
  y,
  c_l,
  r_w,
  aa_1,
  aa_2,
  compact,
  codon_s,
  coding,
  rw_col,
  multsh
)

Value

a list of two elements: 1) a vector of codons in triplet designation on a marker corresponding to a sample in pre-specified coding class. 2) an identifier whose value is 1 if a warning takes place.

Arguments

y

numeric vector; entries in a cell corresponding to a specific sample and a specific marker.

c_l

string; marker label.

r_w

numeric; sample ID's row number in the excel file.

aa_1

string vector; vector of different amino acids.

aa_2

string vector; vector of different codons.

compact

string vector; vector of different codons in compact form.

codon_s

string vector; vector of different codons.

coding

string; coding class of the molecular marker.

rw_col

string vector; variable used to switch between row and column in case of transposed data. Namely, c("rows ", "row ", "column ", "columns ").

multsh

string; reports warnings for multiple worksheet datasets.

See Also

For further details see: moimport, moi_marker and corrector_string.