Codon entropy
codon_entropy(
x,
genetic_code = NULL,
tryrc = TRUE,
codon_filter = TRUE,
resolve_draws = "majority",
method = "ML"
)
Sequences in DNAStringset or DNAbin format
A genetic code for the Amino acid translation. set to 'SGC4' for Invertebrate mitochondrial or see all known codes at Biostrings::GENETIC_CODE_TABLE
Whether the reverse complemement should be evaluated if no frame without stop codons was found in the forward orientation.
Whether taxreturn::codon_filter
should be run first to remove sequences containing stop codons or frameshifts.
How draws should be resolved when multiple possible frames produce sequences with no stop codons. Options are "remove" to completely remove the sequence, or "majority" to pick the most common frame from the entire alignment.
the method employed to estimate entropy. see ?entropy::entropy
for more details