Creates a symbolic pool of RNA-like molecules from a supplied alphabet. This is an educational helper used by the simulation functions; it is not intended to represent chemically realistic reaction pathways.

create_prebiotic_pool(
  n_molecules = 100,
  alphabet = c("A", "U", "G", "C"),
  min_length = 5,
  max_length = 20,
  seed = NULL
)

Arguments

n_molecules

Initial number of molecules.

alphabet

Character vector used to build molecular sequences.

min_length

Minimum molecule length.

max_length

Maximum molecule length.

seed

Optional random seed for reproducibility.

Value

A character vector of symbolic molecular sequences.

Examples

pool <- create_prebiotic_pool(n_molecules = 10, seed = 1)
pool
#>  [1] "CGAUAGGUUGGAA"    "UUUUGAGAA"        "AUAAUUUACGACG"    "UUUGCCCUCA"      
#>  [5] "UACCAGCUUGG"      "UCCUUAUUUUAGGC"   "GGCUCGGACA"       "ACAGUCGAACUA"    
#>  [9] "CCAAAGUAAGGGUUUC" "CUUCGGCGAUUAGGU"