Skip to contents

[Experimental] Computes the fraction of codons with a codon stability score greater than zero.

Usage

score_fraction_optimal(sequence, csc = csc_default())

Arguments

sequence

a character vector with DNA triplets

csc

a named numeric

Value

a numeric value in [0,1]

Examples

codons <- c("ATG", "TTA", "GAT", "TTA", "TAG")
score_fraction_optimal(codons)
#> [1] 0.5

score_fraction_optimal(as_codons("AUGUUAGAUUUAUAG"))
#> [1] 0.5